a,b,c=list(map(int,input().split()))

if(a>b):

 tmp=a

 a=b

 b=tmp

if(b>c):

 tmp=b

 b=c

 c=tmp

if(a>b):

 tmp=a

 a=b

 b=tmp

print(a,b,c)
a,b,c=list(map(int,input().split()))

if(a>b):

 tmp=a

 a=b

 b=tmp

if(b>c):

 tmp=b

 b=c

 c=tmp

if(a>b):

 tmp=b

 b=a

 a=tmp

print(str(a)+" "+str(b)+" "+str(c))
a, b, c = list(map(int, input().split()))
if a > b:
    tmp = a
    a = b
    b = tmp
if b > c:
    tmp = b
    b = c
    c = tmp
if a > b:
    tmp = a
    a = b
    b = tmp
print(a, b, c)

a, b, c = list(map(int, input().split()))
if a > b:
    tmp = a
    a = b
    b = tmp
if b > c:
    tmp = b
    b = c
    c = tmp
if a > b:
    tmp = b
    b = a
    a = tmp
print(str(a) + " " + str(b) + " " + str(c))

-    tmp = a -    a = b -    b = tmp -print(a, b, c) +    tmp = b +    b = a +    a = tmp +print(str(a) + " " + str(b) + " " + str(c))