queue=[1,2,3,4,5]
queue.pop(0)
print(queue)
queue.pop(0)
print(queue)
num1=int(input())
queue.append(num1)
print(queue)