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