
mons = list()

for i in range(0, 10):
    mons.append(int(input()))
mons = sorted(mons)
for i in range(9, 6, -1):
    print(mons[i]) mons = list() mons list() list for i in range(0, 10):
    mons.append(int(input())) i range(0, 10) range 0 10 mons.append(int(input())) mons.append mons append int(input()) int input() input mons = sorted(mons) mons sorted(mons) sorted mons for i in range(9, 6, -1):
    print(mons[i]) i range(9, 6, -1) range 9 6 -1 print(mons[i]) print mons[i] mons i mons = list() list() mons mons = sorted(mons) sorted(mons) mons

mons = list()

for i in range(0, 10):
    mons.append(int(input()))
mons = sorted(mons)
for i in range(9, 6, -1):
    print(mons[i])