Height = [0]*10

for i in range (10):
    Height[i] = int(input())
Height.sort()
Height.reverse()
for j in range(3):
    print(Height[j]) Height = [0]*10 Height [0]*10 [0] 0 10 for i in range (10):
    Height[i] = int(input()) i range (10) range 10 Height[i] = int(input()) Height[i] Height i int(input()) int input() input Height.sort() Height.sort Height sort Height.reverse() Height.reverse Height reverse for j in range(3):
    print(Height[j]) j range(3) range 3 print(Height[j]) print Height[j] Height j Height = [0]*10 [0]*10 Height
Height = [0]*10

for i in range (10):
    Height[i] = int(input())
Height.sort()
Height.reverse()
for j in range(3):
    print(Height[j])
