x,y,z=map(int,input().split())
q=min(x,y,z)
a=max(x,y,z)
if a==x:
if q==y:
print(q,z,x)
else:
print(q,y,x)
elif a==y:
if q==x:
print(q,z,y)
else:
print(q,x,y)
else:
if q==x:
print(q,y,z)
else:
print(q,x,z)