xs=list(map(int,input().split()))

print((' '.join(map(str, sorted(xs)))))
input_list = list(map(int, input().split()))

print((' '.join(map(str, sorted(input_list)))))

xs = list(map(int, input().split()))
print((" ".join(map(str, sorted(xs)))))

input_list = list(map(int, input().split()))
print((" ".join(map(str, sorted(input_list)))))

-xs = list(map(int, input().split())) -print((" ".join(map(str, sorted(xs))))) +input_list = list(map(int, input().split())) +print((" ".join(map(str, sorted(input_list)))))