a = [input() for i in range(10)]
a.sort(reverse=True)
#print "answer"
for i in range(3):
    print a[i] input() for i in range(10) for i in range(10) i range(10) range 10 for i in range(10) input() input a = [input() for i in range(10)] a [input() for i in range(10)] a.sort(reverse=True) a.sort a sort reverse=True reverse True for i in range(3):
    print a[i] i range(3) range 3 print a[i] a i a = [input() for i in range(10)] [input() for i in range(10)] a
a = [input() for i in range(10)]
a.sort(reverse=True)
#print "answer"
for i in range(3):
    print a[i]