lists = []
for x in range (0, 10):
    num = int(input())
    lists.append(num)
    
results = sorted(lists, reverse = True)

print(results[0])
print(results[1])
print(results[2]) lists = [] lists [] for x in range (0, 10):
    num = int(input())
    lists.append(num)
     x range (0, 10) range 0 10 num = int(input()) num int(input()) int input() input lists.append(num) lists.append lists append num results = sorted(lists, reverse = True) results sorted(lists, reverse = True) sorted lists reverse = True reverse True print(results[0]) print results[0] results 0 print(results[1]) print results[1] results 1 print(results[2]) print results[2] results 2 lists = [] [] lists num = int(input()) int(input()) num results = sorted(lists, reverse = True) sorted(lists, reverse = True) results
lists = []
for x in range (0, 10):
    num = int(input())
    lists.append(num)
    
results = sorted(lists, reverse = True)

print(results[0])
print(results[1])
print(results[2])