Write a program which reads a sequence and prints it in the reverse order.
n = int(input())

a = list(map(int, input().split()))
#print(a)
b = sorted(a)
c = sorted(b,reverse = True)
print(c)


n = int(input())

a = list(map(int, input().split()))
#print(a)
a.reverse()
print(*a)

