#!/usr/bin/env python3
hight = []
for i in range(10):
    hight.append(int(input()))
hight = sorted(hight, reverse=True)

for i in range(3):
    print(hight[i]) 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 = sorted(hight, reverse=True) hight sorted(hight, reverse=True) sorted hight reverse=True reverse True for i in range(3):
    print(hight[i]) i range(3) range 3 print(hight[i]) print hight[i] hight i hight = [] [] hight hight = sorted(hight, reverse=True) sorted(hight, reverse=True) hight
#!/usr/bin/env python3
hight = []
for i in range(10):
    hight.append(int(input()))
hight = sorted(hight, reverse=True)

for i in range(3):
    print(hight[i])