hills = [input() for x in xrange(10)]
hills.sort(reverse=True)
for x in xrange(3):
	print hills[x] input() for x in xrange(10) for x in xrange(10) x xrange(10) xrange 10 for x in xrange(10) input() input hills = [input() for x in xrange(10)] hills [input() for x in xrange(10)] hills.sort(reverse=True) hills.sort hills sort reverse=True reverse True for x in xrange(3):
	print hills[x] x xrange(3) xrange 3 print hills[x] hills x hills = [input() for x in xrange(10)] [input() for x in xrange(10)] hills
hills = [input() for x in xrange(10)]
hills.sort(reverse=True)
for x in xrange(3):
	print hills[x]