# coding:utf-8


# ??\???
n = int(input())
numbers = input().split()

numbers.reverse()

print(' '.join(numbers))
c53f4c3267a82d3e65dc0a2f96debcd5a2128a19
<mask token>

<mask token>
numbers.reverse()
print(' '.join(numbers))

n = int(input())
numbers = input().split()
numbers.reverse()
print(' '.join(numbers))

# coding:utf-8


# ??\???
n = int(input())
numbers = input().split()

numbers.reverse()

print(' '.join(numbers))