fork download
  1. n = int(input())
  2. lst = list(map(int, input().split()))[:n]
  3. print(lst[::-1])
Success #stdin #stdout 0.07s 14092KB
stdin
6
2 2 2 2 2 2
stdout
[2, 2, 2, 2, 2, 2]