L = []
for _ in range(10):
    L.append(int(input()))
L.sort(reverse=True)
for m in L[:3]:
    print(m) L = [] L [] for _ in range(10):
    L.append(int(input())) _ range(10) range 10 L.append(int(input())) L.append L append int(input()) int input() input L.sort(reverse=True) L.sort L sort reverse=True reverse True for m in L[:3]:
    print(m) m L[:3] L :3 3 print(m) print m L = [] [] L
L = []
for _ in range(10):
    L.append(int(input()))
L.sort(reverse=True)
for m in L[:3]:
    print(m)