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

  

z.sort()

print(("{0} {1} {2}".format(z[0],z[1],z[2])))
a=list(map(int,input().split()))

a.sort()

print((a[0],a[1],a[2]))
z = [int(i) for i in input().split()]
z.sort()
print(("{0} {1} {2}".format(z[0], z[1], z[2])))

a = list(map(int, input().split()))
a.sort()
print((a[0], a[1], a[2]))

-z = [int(i) for i in input().split()] -z.sort() -print(("{0} {1} {2}".format(z[0], z[1], z[2]))) +a = list(map(int, input().split())) +a.sort() +print((a[0], a[1], a[2]))