a,b,c = map(int, input().split()) x,y,z = a,b,c if a > b: a , b = b , a if a > c: a , c = c , a if b > c: b , c = c , b print(a) print(b) print(c) print(" ") print(x) print(y) print(z)