a = [int(input()) for i in range(10)]

a.sort()

for i in range(1, 4):
    print(a[-i]) 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 a = [int(input()) for i in range(10)] a [int(input()) for i in range(10)] a.sort() a.sort a sort for i in range(1, 4):
    print(a[-i]) i range(1, 4) range 1 4 print(a[-i]) print a[-i] a -i i a = [int(input()) for i in range(10)] [int(input()) for i in range(10)] a
a = [int(input()) for i in range(10)]

a.sort()

for i in range(1, 4):
    print(a[-i])