mountains = []
for x in range(10):
    mountains.append(int(raw_input()))
mountains.sort()
print(mountains[-1])
print(mountains[-2])
print(mountains[-3]) mountains = [] mountains [] for x in range(10):
    mountains.append(int(raw_input())) x range(10) range 10 mountains.append(int(raw_input())) mountains.append mountains append int(raw_input()) int raw_input() raw_input mountains.sort() mountains.sort mountains sort print(mountains[-1]) print mountains[-1] mountains -1 print(mountains[-2]) print mountains[-2] mountains -2 print(mountains[-3]) print mountains[-3] mountains -3 mountains = [] [] mountains
mountains = []
for x in range(10):
    mountains.append(int(raw_input()))
mountains.sort()
print(mountains[-1])
print(mountains[-2])
print(mountains[-3])