ls = []
while True:
    try:
        n = int(raw_input())
    except EOFError:
        break

    ls.append(n)

ls.sort(reverse=True)
print ls[0]
print ls[1]
print ls[2] ls = [] ls [] while True:
    try:
        n = int(raw_input())
    except EOFError:
        break

    ls.append(n) True try:
        n = int(raw_input())
    except EOFError:
        break

     except EOFError:
        break

     break n = int(raw_input()) n int(raw_input()) int raw_input() raw_input ls.append(n) ls.append ls append n ls.sort(reverse=True) ls.sort ls sort reverse=True reverse True print ls[0] ls 0 print ls[1] ls 1 print ls[2] ls 2 n = int(raw_input()) int(raw_input()) n ls = [] [] ls
ls = []
while True:
    try:
        n = int(raw_input())
    except EOFError:
        break

    ls.append(n)

ls.sort(reverse=True)
print ls[0]
print ls[1]
print ls[2]