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