def ListofTopHills():
    h=[]
    for i in range(10):
        h.append(int(input()))
    h=sorted(h)

    for i in range(3):
        print(h[9-i])
        
ListofTopHills() def ListofTopHills():
    h=[]
    for i in range(10):
        h.append(int(input()))
    h=sorted(h)

    for i in range(3):
        print(h[9-i])
         ListofTopHills h=[] h [] for i in range(10):
        h.append(int(input()))
     i range(10) range 10 h.append(int(input())) h.append h append int(input()) int input() input h=sorted(h) h sorted(h) sorted h for i in range(3):
        print(h[9-i])
         i range(3) range 3 print(h[9-i]) print h[9-i] h 9-i 9 i ListofTopHills() ListofTopHills def ListofTopHills():
    h=[]
    for i in range(10):
        h.append(int(input()))
    h=sorted(h)

    for i in range(3):
        print(h[9-i])
         def ListofTopHills():
    h=[]
    for i in range(10):
        h.append(int(input()))
    h=sorted(h)

    for i in range(3):
        print(h[9-i])
         ListofTopHills
def ListofTopHills():
    h=[]
    for i in range(10):
        h.append(int(input()))
    h=sorted(h)

    for i in range(3):
        print(h[9-i])
        
ListofTopHills()