heights = []

for _ in range(10):
	heights.append(int(input()))

heights.sort()
print(heights[9])
print(heights[8])
print(heights[7]) 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() heights.sort heights sort print(heights[9]) print heights[9] heights 9 print(heights[8]) print heights[8] heights 8 print(heights[7]) print heights[7] heights 7 heights = [] [] heights
heights = []

for _ in range(10):
	heights.append(int(input()))

heights.sort()
print(heights[9])
print(heights[8])
print(heights[7])