#uri 1042 solution || simple sort x, y, z = map(int,input().split()) arr = [x,y,z] arr.sort() print(f"{arr[0]} {arr[1]} {arr[2]}") print(f" {x} {y} {z}")