stack = [1, 2, 3, 4, 5]
for i in range(2):
    stack.pop()
    print(stack)
a = input()
stack.append(int(a))
print(stack)