data_set=[]
for i in range(0,10):
        data_set.append(input())
top=sorted(data_set,reverse=True)
for i in range(0,3):
        print(top[i]) data_set=[] data_set [] for i in range(0,10):
        data_set.append(input()) i range(0,10) range 0 10 data_set.append(input()) data_set.append data_set append input() input top=sorted(data_set,reverse=True) top sorted(data_set,reverse=True) sorted data_set reverse=True reverse True for i in range(0,3):
        print(top[i]) i range(0,3) range 0 3 print(top[i]) print top[i] top i data_set=[] [] data_set top=sorted(data_set,reverse=True) sorted(data_set,reverse=True) top
data_set=[]
for i in range(0,10):
        data_set.append(input())
top=sorted(data_set,reverse=True)
for i in range(0,3):
        print(top[i])