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