height_list = [int(eval(input())) for i in range(10)]

for i in range(1,4): print((sorted(height_list)[-i]))
import sys 

height_li = []

for i in range(10):

    height_li.append(int(eval(input())))

for i in range(3):

    print((sorted(height_li,reverse=True)[i]))
height_list = [int(eval(input())) for i in range(10)]
for i in range(1, 4):
    print((sorted(height_list)[-i]))

import sys

height_li = []
for i in range(10):
    height_li.append(int(eval(input())))
for i in range(3):
    print((sorted(height_li, reverse=True)[i]))

-height_list = [int(eval(input())) for i in range(10)] -for i in range(1, 4): -    print((sorted(height_list)[-i])) +import sys + +height_li = [] +for i in range(10): +    height_li.append(int(eval(input()))) +for i in range(3): +    print((sorted(height_li, reverse=True)[i]))