import fileinput

mountains = []
for cnt in range(10):
#    for line in fileinput.input():
    a = input()
    mountains.append(int(a))
mountains.sort()
print(mountains[9])
print(mountains[8])
print(mountains[7]) import fileinput fileinput mountains = [] mountains [] for cnt in range(10):
#    for line in fileinput.input():
    a = input()
    mountains.append(int(a)) cnt range(10) range 10 a = input() a input() input mountains.append(int(a)) mountains.append mountains append int(a) int a mountains.sort() mountains.sort mountains sort print(mountains[9]) print mountains[9] mountains 9 print(mountains[8]) print mountains[8] mountains 8 print(mountains[7]) print mountains[7] mountains 7 a = input() input() a mountains = [] [] mountains
import fileinput

mountains = []
for cnt in range(10):
#    for line in fileinput.input():
    a = input()
    mountains.append(int(a))
mountains.sort()
print(mountains[9])
print(mountains[8])
print(mountains[7])