import itertools

l = [int(input()) for i in range(10)]
r = reversed(sorted(l))
for x in itertools.islice(r, 3):
    print(x) import itertools itertools int(input()) for i in range(10) for i in range(10) i range(10) range 10 for i in range(10) int(input()) int input() input l = [int(input()) for i in range(10)] l [int(input()) for i in range(10)] r = reversed(sorted(l)) r reversed(sorted(l)) reversed sorted(l) sorted l for x in itertools.islice(r, 3):
    print(x) x itertools.islice(r, 3) itertools.islice itertools islice r 3 print(x) print x l = [int(input()) for i in range(10)] [int(input()) for i in range(10)] l r = reversed(sorted(l)) reversed(sorted(l)) r
import itertools

l = [int(input()) for i in range(10)]
r = reversed(sorted(l))
for x in itertools.islice(r, 3):
    print(x)