mountain=[]
for s in range(0,10):
    mountain.append(int(input()))
mountain.sort(reverse=True)
for s in range(0,3):
 print(mountain[s]) mountain=[] mountain [] for s in range(0,10):
    mountain.append(int(input())) s range(0,10) range 0 10 mountain.append(int(input())) mountain.append mountain append int(input()) int input() input mountain.sort(reverse=True) mountain.sort mountain sort reverse=True reverse True for s in range(0,3):
 print(mountain[s]) s range(0,3) range 0 3 print(mountain[s]) print mountain[s] mountain s mountain=[] [] mountain
mountain=[]
for s in range(0,10):
    mountain.append(int(input()))
mountain.sort(reverse=True)
for s in range(0,3):
 print(mountain[s])