
array = []
for i in range(10):
    num = int(input())
    array.append(num)

list = sorted(array)
print(list[9])
print(list[8])
print(list[7]) array = [] array [] for i in range(10):
    num = int(input())
    array.append(num) i range(10) range 10 num = int(input()) num int(input()) int input() input array.append(num) array.append array append num list = sorted(array) list sorted(array) sorted array print(list[9]) print list[9] list 9 print(list[8]) print list[8] list 8 print(list[7]) print list[7] list 7 array = [] [] array num = int(input()) int(input()) num list = sorted(array) sorted(array) list

array = []
for i in range(10):
    num = int(input())
    array.append(num)

list = sorted(array)
print(list[9])
print(list[8])
print(list[7])