ls = []
for i in range(0,10):
    ls.append(int(input()))
ls.sort()
print(ls[9])
print(ls[8])
print(ls[7]) ls = [] ls [] for i in range(0,10):
    ls.append(int(input())) i range(0,10) range 0 10 ls.append(int(input())) ls.append ls append int(input()) int input() input ls.sort() ls.sort ls sort print(ls[9]) print ls[9] ls 9 print(ls[8]) print ls[8] ls 8 print(ls[7]) print ls[7] ls 7 ls = [] [] ls
ls = []
for i in range(0,10):
    ls.append(int(input()))
ls.sort()
print(ls[9])
print(ls[8])
print(ls[7])