#!/usr/bin/python
#-coding:utf8-

import sys

data = map(int,sys.stdin.read().split())
data.sort()
data.reverse()
for s in data[:3]:
  print s import sys sys data = map(int,sys.stdin.read().split()) data map(int,sys.stdin.read().split()) map int sys.stdin.read().split() sys.stdin.read().split sys.stdin.read() sys.stdin.read sys.stdin sys stdin read split data.sort() data.sort data sort data.reverse() data.reverse data reverse for s in data[:3]:
  print s s data[:3] data :3 3 print data = map(int,sys.stdin.read().split()) map(int,sys.stdin.read().split()) data
#!/usr/bin/python
#-coding:utf8-

import sys

data = map(int,sys.stdin.read().split())
data.sort()
data.reverse()
for s in data[:3]:
  print s