n = int(input())
array = input()
l = []
a = array.split(' ')
for x in a:
    x = int(x)
    l.append(x)
x = l[::-1]
b = ' '.join(str(e) for e in x)
print(b)

12aeedc81babdcf3607bc9c74edabfbb984149b6
<mask token>

<mask token>
for x in a:
    x = int(x)
    l.append(x)
<mask token>
print(b)

n = int(input())
array = input()
l = []
a = array.split(' ')
for x in a:
    x = int(x)
    l.append(x)
x = l[::-1]
b = ' '.join(str(e) for e in x)
print(b)
