A = sorted([int(raw_input()) for _ in xrange(10)])
print A[9]
print A[8]
print A[7] int(raw_input()) for _ in xrange(10) for _ in xrange(10) _ xrange(10) xrange 10 for _ in xrange(10) int(raw_input()) int raw_input() raw_input A = sorted([int(raw_input()) for _ in xrange(10)]) A sorted([int(raw_input()) for _ in xrange(10)]) sorted [int(raw_input()) for _ in xrange(10)] print A[9] A 9 print A[8] A 8 print A[7] A 7 A = sorted([int(raw_input()) for _ in xrange(10)]) sorted([int(raw_input()) for _ in xrange(10)]) A
A = sorted([int(raw_input()) for _ in xrange(10)])
print A[9]
print A[8]
print A[7]