a = gets.to_i
b = gets.to_i
c = gets.to_i
d = gets.to_i
e = gets.to_i
f = gets.to_i
g = gets.to_i
h = gets.to_i
i = gets.to_i
j = gets.to_i
arr=[a,b,c,d,e,f,g,h,i,j]
newarr=arr.sort
print("#{newarr.at(0)}\n#{newarr.at(1)}\n#{newarr.at(2)}\n")