a = int(input())
b = int(input())
c = int(input())
if a > b and b > c:
print(a)
print(c)
print(b)
elif c > b and a > c:
print (a)
print (b)
print (c)
elif b > a and a > c:
print(b)
print(c)
print(a)
elif c > a and b > c:
print(b)
print(a)
print(c)
elif c > b and b > a:
print(c)
print(a)
print(b)
else a > b and c > a:
print(c)
print(b)
print(a)
if test1:
state1
elif test2:
state2
else:
state3