import sys

li = []
for line in sys.stdin:
   li.append(int(line))
   if len(li) == 10:
      break

li.sort(reverse=True)
li = li[0:3]
for i in li:
   print(i) import sys sys li = [] li [] for line in sys.stdin:
   li.append(int(line))
   if len(li) == 10:
      break line sys.stdin sys stdin li.append(int(line)) li.append li append int(line) int line if len(li) == 10:
      break len(li) == 10 len(li) len li 10 break li.sort(reverse=True) li.sort li sort reverse=True reverse True li = li[0:3] li li[0:3] li 0:3 0 3 for i in li:
   print(i) i li print(i) print i li = [] [] li li = li[0:3] li[0:3] li
import sys

li = []
for line in sys.stdin:
   li.append(int(line))
   if len(li) == 10:
      break

li.sort(reverse=True)
li = li[0:3]
for i in li:
   print(i)