import sys
a = []
s = sys.stdin.readline()
while s :
	a.append(int(s))
	s = sys.stdin.readline()

a.sort()
a.reverse()
for i in range(3) :
	print(a[i]); import sys sys a = [] a [] s = sys.stdin.readline() s sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline while s :
	a.append(int(s))
	s = sys.stdin.readline() s a.append(int(s)) a.append a append int(s) int s s = sys.stdin.readline() s sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline a.sort() a.sort a sort a.reverse() a.reverse a reverse for i in range(3) :
	print(a[i]); i range(3) range 3 print(a[i]) print a[i] a i s = sys.stdin.readline() sys.stdin.readline() s s = sys.stdin.readline() sys.stdin.readline() s a = [] [] a
import sys
a = []
s = sys.stdin.readline()
while s :
	a.append(int(s))
	s = sys.stdin.readline()

a.sort()
a.reverse()
for i in range(3) :
	print(a[i]);