
mountain = []

for _ in range(10):
	mountain.append(int(input()))
	
mountain.sort()
mountain.reverse()

print(mountain[0])
print(mountain[1])
print(mountain[2]) mountain = [] mountain [] for _ in range(10):
	mountain.append(int(input()))
	 _ range(10) range 10 mountain.append(int(input())) mountain.append mountain append int(input()) int input() input mountain.sort() mountain.sort mountain sort mountain.reverse() mountain.reverse mountain reverse print(mountain[0]) print mountain[0] mountain 0 print(mountain[1]) print mountain[1] mountain 1 print(mountain[2]) print mountain[2] mountain 2 mountain = [] [] mountain

mountain = []

for _ in range(10):
	mountain.append(int(input()))
	
mountain.sort()
mountain.reverse()

print(mountain[0])
print(mountain[1])
print(mountain[2])