temp = 0
height = Array.new(10,0)
for i in 1..10 do
	height[i] = gets.to_i
end

for i in 1..10 do
	for j in i+1..10 do
		if height[i] < height[j] then
			temp = height[i]
			height[i] = height[j]
			height[j] = temp
		end
	end
end
for i in 1..3 do
	print(height[i],"\n")
end