import math

n = int(input())
a = list(map(int,input().strip().split()))[:n] 
length = len(a)
# temp = 0
for i in range(n-1, -1, -1):
    print(a[i], end=' ')
c0a4b749923fa6436aa0c346be771b911ecd2c41
<mask token>

<mask token>
for i in range(n - 1, -1, -1):
    print(a[i], end=' ')

<mask token>
n = int(input())
a = list(map(int, input().strip().split()))[:n]
length = len(a)
for i in range(n - 1, -1, -1):
    print(a[i], end=' ')

import math
n = int(input())
a = list(map(int, input().strip().split()))[:n]
length = len(a)
for i in range(n - 1, -1, -1):
    print(a[i], end=' ')

import math

n = int(input())
a = list(map(int,input().strip().split()))[:n] 
length = len(a)
# temp = 0
for i in range(n-1, -1, -1):
    print(a[i], end=' ')