import sys

heights = sorted([int(h) for h in sys.stdin], reverse=True)

print(heights[0])
print(heights[1])
print(heights[2]) import sys sys int(h) for h in sys.stdin for h in sys.stdin h sys.stdin sys stdin for h in sys.stdin int(h) int h heights = sorted([int(h) for h in sys.stdin], reverse=True) heights sorted([int(h) for h in sys.stdin], reverse=True) sorted [int(h) for h in sys.stdin] 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 = sorted([int(h) for h in sys.stdin], reverse=True) sorted([int(h) for h in sys.stdin], reverse=True) heights
import sys

heights = sorted([int(h) for h in sys.stdin], reverse=True)

print(heights[0])
print(heights[1])
print(heights[2])