import sys
heights = []
for l in sys.stdin:
  heights.append(int(l))
heights = sorted(heights, reverse=True)
print(heights[0])
print(heights[1])
print(heights[2]) import sys sys heights = [] heights [] for l in sys.stdin:
  heights.append(int(l)) l sys.stdin sys stdin heights.append(int(l)) heights.append heights append int(l) int l heights = sorted(heights, reverse=True) heights sorted(heights, reverse=True) sorted heights reverse=True reverse True print(heights[0]) print heights[0] heights 0 print(heights[1]) print heights[1] heights 1 print(heights[2]) print heights[2] heights 2 heights = [] [] heights heights = sorted(heights, reverse=True) sorted(heights, reverse=True) heights
import sys
heights = []
for l in sys.stdin:
  heights.append(int(l))
heights = sorted(heights, reverse=True)
print(heights[0])
print(heights[1])
print(heights[2])