print(' '.join(map(str, sorted(map(int, input().split())))[::-1]))
print(' '.join([str(x) for x in sorted([int(x) for x in input().split()])[::-1]]))
print(" ".join(map(str, sorted(map(int, input().split())))[::-1]))

print(" ".join([str(x) for x in sorted([int(x) for x in input().split()])[::-1]]))

-print(" ".join(map(str, sorted(map(int, input().split())))[::-1])) +print(" ".join([str(x) for x in sorted([int(x) for x in input().split()])[::-1]]))