f,s,t,i=0,0,0,0
10.times do
	m=gets.to_i
        if f<m
              	m,f=f,m
        end
	if s<m
              	m,s=s,m
        end
	if t<m
              	m,t=t,m
        end
end
puts "#{f}","#{s}","#{t}"