n = int(input())
numbers =[]

# numbers = [int(input() for _ in range(n))] # 아래와 같지만 컴프리헨션으로 구현

for _ in range(n):
    numbers.append(int(input()))

sor = sorted(numbers, reverse=True)

for i in range(n):
    print(sor[i], end=' ')
e08d9e5df77cf664cacc31760351013c02c03e0f
<mask token>

<mask token>
for _ in range(n):
    numbers.append(int(input()))
<mask token>
for i in range(n):
    print(sor[i], end=' ')

n = int(input())
numbers = []
for _ in range(n):
    numbers.append(int(input()))
sor = sorted(numbers, reverse=True)
for i in range(n):
    print(sor[i], end=' ')

n = int(input())
numbers =[]

# numbers = [int(input() for _ in range(n))] # 아래와 같지만 컴프리헨션으로 구현

for _ in range(n):
    numbers.append(int(input()))

sor = sorted(numbers, reverse=True)

for i in range(n):
    print(sor[i], end=' ')