stack = [1, 2, 3, 4, 5]
num = eval(input())

for i in range(2):
    stack.pop()
    print(stack)

stack.append(num)
print(stack)