heights = sorted([int(input()) for n in xrange(10)])
for idx in range(-1, -4, -1):
    print heights[idx] int(input()) for n in xrange(10) for n in xrange(10) n xrange(10) xrange 10 for n in xrange(10) int(input()) int input() input heights = sorted([int(input()) for n in xrange(10)]) heights sorted([int(input()) for n in xrange(10)]) sorted [int(input()) for n in xrange(10)] for idx in range(-1, -4, -1):
    print heights[idx] idx range(-1, -4, -1) range -1 -4 -1 print heights[idx] heights idx heights = sorted([int(input()) for n in xrange(10)]) sorted([int(input()) for n in xrange(10)]) heights
heights = sorted([int(input()) for n in xrange(10)])
for idx in range(-1, -4, -1):
    print heights[idx]