
a = []

while True:
    try:
        n = int(input())
        a.append(n)
    except:
        break

print(max(a))
a.remove(max(a))
print(max(a))
a.remove(max(a))
print(max(a)) a = [] a [] while True:
    try:
        n = int(input())
        a.append(n)
    except:
        break True try:
        n = int(input())
        a.append(n)
    except:
        break except:
        break break n = int(input()) n int(input()) int input() input a.append(n) a.append a append n print(max(a)) print max(a) max a a.remove(max(a)) a.remove a remove max(a) max a print(max(a)) print max(a) max a a.remove(max(a)) a.remove a remove max(a) max a print(max(a)) print max(a) max a a = [] [] a n = int(input()) int(input()) n

a = []

while True:
    try:
        n = int(input())
        a.append(n)
    except:
        break

print(max(a))
a.remove(max(a))
print(max(a))
a.remove(max(a))
print(max(a))
