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

print((" ".join(map(str,sorted(a)))))
a = [int(i) for i in input().split()]

a.sort()

print((a[0],a[1],a[2]))
a = [int(i) for i in input().split()]
print((" ".join(map(str, sorted(a)))))

a = [int(i) for i in input().split()]
a.sort()
print((a[0], a[1], a[2]))

-print((" ".join(map(str, sorted(a))))) +a.sort() +print((a[0], a[1], a[2]))