import sys

data = []

for d in sys.stdin:
  data.append(int(d))

data.sort(reverse=True)
for i in xrange(3):
  print data[i] import sys sys data = [] data [] for d in sys.stdin:
  data.append(int(d)) d sys.stdin sys stdin data.append(int(d)) data.append data append int(d) int d data.sort(reverse=True) data.sort data sort reverse=True reverse True for i in xrange(3):
  print data[i] i xrange(3) xrange 3 print data[i] data i data = [] [] data
import sys

data = []

for d in sys.stdin:
  data.append(int(d))

data.sort(reverse=True)
for i in xrange(3):
  print data[i]