heights = [int(input()) for n in xrange(10)]
for x in xrange(3):
    v = max(heights)
    print v
    heights.remove(v) 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 = [int(input()) for n in xrange(10)] heights [int(input()) for n in xrange(10)] for x in xrange(3):
    v = max(heights)
    print v
    heights.remove(v) x xrange(3) xrange 3 v = max(heights) v max(heights) max heights print heights.remove(v) heights.remove heights remove v v = max(heights) max(heights) v heights = [int(input()) for n in xrange(10)] [int(input()) for n in xrange(10)] heights
heights = [int(input()) for n in xrange(10)]
for x in xrange(3):
    v = max(heights)
    print v
    heights.remove(v)