a=sorted([int(i) for i in input().split()],reverse=True)

print((" ".join([str(i) for i in a])))
a=sorted([int(i) for i in input().split()],reverse=True)

print((*a))
a = sorted([int(i) for i in input().split()], reverse=True)
print((" ".join([str(i) for i in a])))

a = sorted([int(i) for i in input().split()], reverse=True)
print((*a))

-print((" ".join([str(i) for i in a]))) +print((*a))