hight = []

for i in range(10):
    hight.append(int(input()))

hight.sort(reverse=True)
print(hight[0])
print(hight[1])
print(hight[2]) hight = [] hight [] for i in range(10):
    hight.append(int(input())) i range(10) range 10 hight.append(int(input())) hight.append hight append int(input()) int input() input hight.sort(reverse=True) hight.sort hight sort reverse=True reverse True print(hight[0]) print hight[0] hight 0 print(hight[1]) print hight[1] hight 1 print(hight[2]) print hight[2] hight 2 hight = [] [] hight
hight = []

for i in range(10):
    hight.append(int(input()))

hight.sort(reverse=True)
print(hight[0])
print(hight[1])
print(hight[2])