Write a program which reads a sequence and prints it in the reverse order.
n=int(input())
l=list(map(int,input().split()))
print(l[::-1])

n=int(input())
l=list(map(int,input().split()))
l.reverse()
print( ' '.join(list(map( lambda x: str(x), l ))) )
