height = [int(input()) for i in range(10)]
sort = sorted(height, reverse=True)
for i in range(3):
    print(sort[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 height = [int(input()) for i in range(10)] height [int(input()) for i in range(10)] sort = sorted(height, reverse=True) sort sorted(height, reverse=True) sorted height reverse=True reverse True for i in range(3):
    print(sort[i]) i range(3) range 3 print(sort[i]) print sort[i] sort i sort = sorted(height, reverse=True) sorted(height, reverse=True) sort height = [int(input()) for i in range(10)] [int(input()) for i in range(10)] height
height = [int(input()) for i in range(10)]
sort = sorted(height, reverse=True)
for i in range(3):
    print(sort[i])