list = [int(a) for a in input().split()]

list.sort()

print((*list))
print((*sorted(map(int, input().split()))))
list = [int(a) for a in input().split()]
list.sort()
print((*list))

print((*sorted(map(int, input().split()))))

-list = [int(a) for a in input().split()] -list.sort() -print((*list)) +print((*sorted(map(int, input().split()))))