def hi()
	p = Array.new
	co =10
	while co>0
		a= gets.to_i
                if a<=0 
                   exit
               end
		p.push(a)
		co=co-1
	end
	sorted = p.sort
	le = p.length
	i=le-1
	while i>=le-3
		puts sorted[i]
	      i=i-1
	end
end