heights = []
for _ in range(10):
    heights.append(int(input()))
heights.sort(reverse=True)
for i in range(3):
    print(heights[i]) heights = [] heights [] for _ in range(10):
    heights.append(int(input())) _ range(10) range 10 heights.append(int(input())) heights.append heights append int(input()) int input() input heights.sort(reverse=True) heights.sort heights sort reverse=True reverse True for i in range(3):
    print(heights[i]) i range(3) range 3 print(heights[i]) print heights[i] heights i heights = [] [] heights
heights = []
for _ in range(10):
    heights.append(int(input()))
heights.sort(reverse=True)
for i in range(3):
    print(heights[i])