import sys

heights = []

for height in sys.stdin:
  heights.append(int(height.rstrip()))

heights.sort()
heights.reverse()

for i in range(3):
  print heights[i] import sys sys heights = [] heights [] for height in sys.stdin:
  heights.append(int(height.rstrip())) height sys.stdin sys stdin heights.append(int(height.rstrip())) heights.append heights append int(height.rstrip()) int height.rstrip() height.rstrip height rstrip 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] heights i heights = [] [] heights
import sys

heights = []

for height in sys.stdin:
  heights.append(int(height.rstrip()))

heights.sort()
heights.reverse()

for i in range(3):
  print heights[i]