ranking = []
while True:
    try:
        height = int(input())
        ranking.append(height)
    except:
        break

sortedRanking = sorted(ranking, reverse=True)
print(sortedRanking[0])
print(sortedRanking[1])
print(sortedRanking[2]) ranking = [] ranking [] while True:
    try:
        height = int(input())
        ranking.append(height)
    except:
        break True try:
        height = int(input())
        ranking.append(height)
    except:
        break except:
        break break height = int(input()) height int(input()) int input() input ranking.append(height) ranking.append ranking append height sortedRanking = sorted(ranking, reverse=True) sortedRanking sorted(ranking, reverse=True) sorted ranking reverse=True reverse True print(sortedRanking[0]) print sortedRanking[0] sortedRanking 0 print(sortedRanking[1]) print sortedRanking[1] sortedRanking 1 print(sortedRanking[2]) print sortedRanking[2] sortedRanking 2 ranking = [] [] ranking height = int(input()) int(input()) height sortedRanking = sorted(ranking, reverse=True) sorted(ranking, reverse=True) sortedRanking
ranking = []
while True:
    try:
        height = int(input())
        ranking.append(height)
    except:
        break

sortedRanking = sorted(ranking, reverse=True)
print(sortedRanking[0])
print(sortedRanking[1])
print(sortedRanking[2])