n = input().split() a = int(n[0]) b = int(n[1]) c = int(n[2]) if (a > b): a,b = b,a if (b > c): b,c = c,b if (a > b): a,b =b,a print(a) print(b) print(c) print() for i in range (0, len(n)): print(n[i])