data = []
for i in range(10):
    data.append(int(input()))
data = sorted(data)
print(data[-1])
print(data[-2])
print(data[-3]) data = [] data [] for i in range(10):
    data.append(int(input())) i range(10) range 10 data.append(int(input())) data.append data append int(input()) int input() input data = sorted(data) data sorted(data) sorted data print(data[-1]) print data[-1] data -1 print(data[-2]) print data[-2] data -2 print(data[-3]) print data[-3] data -3 data = sorted(data) sorted(data) data data = [] [] data
data = []
for i in range(10):
    data.append(int(input()))
data = sorted(data)
print(data[-1])
print(data[-2])
print(data[-3])