mh=[]

for i in range(1,11):
    mh.append(int(input()))

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

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

for i in range(1,11):
    mh.append(int(input()))

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


