<reponame>lakshitaa2911/HackerRank-30-Days-of-Code
#!/bin/python
from __future__ import print_function
import sys


n = int(raw_input().strip())
arr = list(map(int,raw_input().strip().split(' ')))
arr.reverse()

print(*arr,sep=' ')
#!/bin/python
from __future__ import print_function
import sys


n = int(raw_input().strip())
arr = list(map(int,raw_input().strip().split(' ')))
arr.reverse()

print(*arr,sep=' ')
#!/bin/python