a=array.new(4,0)

10.times do
a[3] = gets.chomp.to_i 
3.times do |i|
???if a[2-i]<a[3-i]??????
???????????? a[2-i], a[3-i] = a[3-i], a[2-i]
?????????else
??????break
??????end
end
end 
puts a[0]
puts a[1]
puts a[2]	