spam = [int(input()) for i in range(0, 10)]
spam.sort()
spam.reverse()
for i in range(0,3):
    print(spam[i]) int(input()) for i in range(0, 10) for i in range(0, 10) i range(0, 10) range 0 10 for i in range(0, 10) int(input()) int input() input spam = [int(input()) for i in range(0, 10)] spam [int(input()) for i in range(0, 10)] spam.sort() spam.sort spam sort spam.reverse() spam.reverse spam reverse for i in range(0,3):
    print(spam[i]) i range(0,3) range 0 3 print(spam[i]) print spam[i] spam i spam = [int(input()) for i in range(0, 10)] [int(input()) for i in range(0, 10)] spam
spam = [int(input()) for i in range(0, 10)]
spam.sort()
spam.reverse()
for i in range(0,3):
    print(spam[i])