
stack = []

stack.append(1)
stack.append(2)
stack.append(2)

print(stack)

print(stack.pop())
print(stack.pop())

print(stack)


queue = []

queue.append(1)
queue.append(2)
queue.append(3)

print(queue)

print(queue.pop(0))
print(queue.pop(0))

print(queue)