def __main():

    mountains = []
    numOfMoun = 10
 
    for c in range(numOfMoun):
        mountains.insert(c,int(input()))
        
    sorted_mounts = sorted(mountains,reverse=True)
    for k in range(3):
        print(sorted_mounts[k])

__main()
 def __main():

    mountains = []
    numOfMoun = 10
 
    for c in range(numOfMoun):
        mountains.insert(c,int(input()))
        
    sorted_mounts = sorted(mountains,reverse=True)
    for k in range(3):
        print(sorted_mounts[k]) __main mountains = [] mountains [] numOfMoun = 10 numOfMoun 10 for c in range(numOfMoun):
        mountains.insert(c,int(input()))
        
     c range(numOfMoun) range numOfMoun mountains.insert(c,int(input())) mountains.insert mountains insert c int(input()) int input() input sorted_mounts = sorted(mountains,reverse=True) sorted_mounts sorted(mountains,reverse=True) sorted mountains reverse=True reverse True for k in range(3):
        print(sorted_mounts[k]) k range(3) range 3 print(sorted_mounts[k]) print sorted_mounts[k] sorted_mounts k __main() __main
def __main():

    mountains = []
    numOfMoun = 10
 
    for c in range(numOfMoun):
        mountains.insert(c,int(input()))
        
    sorted_mounts = sorted(mountains,reverse=True)
    for k in range(3):
        print(sorted_mounts[k])

__main()

