n= int (input())
 
 
 if n<0:
 print("invalid input")
 else:
 
 stack=list(map(int,input().split()))
 
 print(*stack)