heights = sorted([input() for _ in xrange(10)])
for i in xrange(1, 4):
    print heights[-i] input() for _ in xrange(10) for _ in xrange(10) _ xrange(10) xrange 10 for _ in xrange(10) input() input heights = sorted([input() for _ in xrange(10)]) heights sorted([input() for _ in xrange(10)]) sorted [input() for _ in xrange(10)] for i in xrange(1, 4):
    print heights[-i] i xrange(1, 4) xrange 1 4 print heights[-i] heights -i i heights = sorted([input() for _ in xrange(10)]) sorted([input() for _ in xrange(10)]) heights
heights = sorted([input() for _ in xrange(10)])
for i in xrange(1, 4):
    print heights[-i]