import math
import os
import random
import re
import sys
n = int(input())
arr = list(map(int, input().rstrip().split()))
reversed_array = []
for i in range(n):
    reversed_array.append(arr[n - i - 1])
Output_string = ''
for i in range(len(reversed_array)):
    Output_string += str(reversed_array[i]) + ' '
print(Output_string)

bac02c9c6346efa864beec464ba4419df0292d9e
<mask token>

<mask token>
for i in range(n):
    reversed_array.append(arr[n - i - 1])
<mask token>
for i in range(len(reversed_array)):
    Output_string += str(reversed_array[i]) + ' '
print(Output_string)

<mask token>
n = int(input())
arr = list(map(int, input().rstrip().split()))
reversed_array = []
for i in range(n):
    reversed_array.append(arr[n - i - 1])
Output_string = ''
for i in range(len(reversed_array)):
    Output_string += str(reversed_array[i]) + ' '
print(Output_string)

import math
import os
import random
import re
import sys
n = int(input())
arr = list(map(int, input().rstrip().split()))
reversed_array = []
for i in range(n):
    reversed_array.append(arr[n - i - 1])
Output_string = ''
for i in range(len(reversed_array)):
    Output_string += str(reversed_array[i]) + ' '
print(Output_string)
