stack = [1, 2, 3, 4, 5]
stack.pop()
print(stack)
stack.pop()
print(stack)
a = int(input())
stack.append(a)
print(stack)