array = []

for count in 1..10
	array.push gets.chomp.to_i
end

count = 1

while count < 10
	if array[count-1] < array[count]
		spare = array[count-1]
		array[count-1] = array[count]
		array[count] = spare
		count = 1
		else
		count += 1
	end
end	

puts array[0..2]