M=[]
for i in range(10):
	k=int(input())
	M.append(k)
N=sorted(M)
print(N[-1])
print(N[-2])
print(N[-3]) M=[] M [] for i in range(10):
	k=int(input())
	M.append(k) i range(10) range 10 k=int(input()) k int(input()) int input() input M.append(k) M.append M append k N=sorted(M) N sorted(M) sorted M print(N[-1]) print N[-1] N -1 print(N[-2]) print N[-2] N -2 print(N[-3]) print N[-3] N -3 M=[] [] M N=sorted(M) sorted(M) N k=int(input()) int(input()) k
M=[]
for i in range(10):
	k=int(input())
	M.append(k)
N=sorted(M)
print(N[-1])
print(N[-2])
print(N[-3])