nums = [int(x) for x in input().split(" ")]

nums.sort()

res = " ".join([str(n) for n in nums])

print(res)
l = list(map(int, input().split()))

l.sort()

print((*l))

nums = [int(x) for x in input().split(" ")]
nums.sort()
res = " ".join([str(n) for n in nums])
print(res)

l = list(map(int, input().split()))
l.sort()
print((*l))

-nums = [int(x) for x in input().split(" ")] -nums.sort() -res = " ".join([str(n) for n in nums]) -print(res) +l = list(map(int, input().split())) +l.sort() +print((*l))