mountains = []
for i in range(10):
    mountains.append(int(input()))
for m in sorted(mountains)[-1:-4:-1]:
    print(m) mountains = [] mountains [] for i in range(10):
    mountains.append(int(input())) i range(10) range 10 mountains.append(int(input())) mountains.append mountains append int(input()) int input() input for m in sorted(mountains)[-1:-4:-1]:
    print(m) m sorted(mountains)[-1:-4:-1] (mountains) sorted mountains -1:-4:-1 -1 -4 -1 print(m) print m mountains = [] [] mountains
mountains = []
for i in range(10):
    mountains.append(int(input()))
for m in sorted(mountains)[-1:-4:-1]:
    print(m)