for e in sorted(map(int,input().split()))[::-1]:

    print(e, end=' ')
x=sorted(map(int,input().split()))[::-1]

for e in x:

    print(e, end=' ')
for e in sorted(map(int, input().split()))[::-1]:
    print(e, end=" ")

x = sorted(map(int, input().split()))[::-1]
for e in x:
    print(e, end=" ")

-for e in sorted(map(int, input().split()))[::-1]: +x = sorted(map(int, input().split()))[::-1] +for e in x: