fork download
  1. s=input().split()
  2. for i in reversed(s):
  3. print(i,end = ' ')
Success #stdin #stdout 0.01s 27712KB
stdin
1 2 3 4 5 
stdout
5 4 3 2 1