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