Write a program which reads a sequence and prints it in the reverse order.
n=int(input())
x=[int(i) for i in input().split()]
x=sorted(x,reverse=True)
for i in range(n):
    print(x[i],"",end="")
n=int(input())
x=[int(i) for i in input().split()]
for i in reversed(range(n)):
    if 0==i:
        print(x[i])
    else:
        print(x[i],"",end="")