mountains = []
for x in range(10):
  mountains.append(int(raw_input()))

mountains.sort()
mountains.reverse()
print mountains[0]
print mountains[1]
print mountains[2] mountains = [] mountains [] for x in range(10):
  mountains.append(int(raw_input())) x range(10) range 10 mountains.append(int(raw_input())) mountains.append mountains append int(raw_input()) int raw_input() raw_input mountains.sort() mountains.sort mountains sort mountains.reverse() mountains.reverse mountains reverse print mountains[0] mountains 0 print mountains[1] mountains 1 print mountains[2] mountains 2 mountains = [] [] mountains
mountains = []
for x in range(10):
  mountains.append(int(raw_input()))

mountains.sort()
mountains.reverse()
print mountains[0]
print mountains[1]
print mountains[2]