import sys
heights = []
for i in range(10):
    line = sys.stdin.readline()
    height = int(line)
    heights.append(height)
heights.sort()
heights.reverse()
for i in range(3):
    print (heights[i]) import sys sys heights = [] heights [] for i in range(10):
    line = sys.stdin.readline()
    height = int(line)
    heights.append(height) i range(10) range 10 line = sys.stdin.readline() line sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline height = int(line) height int(line) int line heights.append(height) heights.append heights append height heights.sort() heights.sort heights sort heights.reverse() heights.reverse heights reverse for i in range(3):
    print (heights[i]) i range(3) range 3 print (heights[i]) print heights[i] heights i height = int(line) int(line) height heights = [] [] heights line = sys.stdin.readline() sys.stdin.readline() line
import sys
heights = []
for i in range(10):
    line = sys.stdin.readline()
    height = int(line)
    heights.append(height)
heights.sort()
heights.reverse()
for i in range(3):
    print (heights[i])