values = []
for i in range(10):
    values.append(int(input()))

top3 = []
for i in range(3):
    Max = max(values)
    top3.append(Max)
    values.remove(Max)

for x in top3:
    print(x) values = [] values [] for i in range(10):
    values.append(int(input())) i range(10) range 10 values.append(int(input())) values.append values append int(input()) int input() input top3 = [] top3 [] for i in range(3):
    Max = max(values)
    top3.append(Max)
    values.remove(Max) i range(3) range 3 Max = max(values) Max max(values) max values top3.append(Max) top3.append top3 append Max values.remove(Max) values.remove values remove Max for x in top3:
    print(x) x top3 print(x) print x values = [] [] values Max = max(values) max(values) Max top3 = [] [] top3
values = []
for i in range(10):
    values.append(int(input()))

top3 = []
for i in range(3):
    Max = max(values)
    top3.append(Max)
    values.remove(Max)

for x in top3:
    print(x)