mount = []

for i in range(0, 10):
    n = input()
    mount.append(n)

mount.sort(reverse = True)

for i in range(0, 3):
    print mount[i] mount = [] mount [] for i in range(0, 10):
    n = input()
    mount.append(n) i range(0, 10) range 0 10 n = input() n input() input mount.append(n) mount.append mount append n mount.sort(reverse = True) mount.sort mount sort reverse = True reverse True for i in range(0, 3):
    print mount[i] i range(0, 3) range 0 3 print mount[i] mount i mount = [] [] mount n = input() input() n
mount = []

for i in range(0, 10):
    n = input()
    mount.append(n)

mount.sort(reverse = True)

for i in range(0, 3):
    print mount[i]