mountains = []

for _ in range(10):
    mountains.append(int(input()))

mountains.sort(reverse=True)

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

for _ in range(10):
    mountains.append(int(input()))

mountains.sort(reverse=True)

for height in mountains[:3]:
    print(height)

