n = int(input().strip())
if n<0:
print(-1)
else:
arr=list(map(int,input().split()))
arr.reverse()
print(*arr)