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