fork download
  1. from sys import stdin
  2.  
  3. m=n=int(input())
  4. q=[]
  5. k=[]
  6. p=[]
  7. p=input()
  8. q=p.split()
  9. while n>0:
  10. k.append(q[n-1])
  11. n=n-1
  12. while n<m:
  13. print (k[n],' ')
  14. n=n+1
Success #stdin #stdout 0.03s 9724KB
stdin
3
1 14 5
stdout
5  
14  
1