import sys

#list = sys.stdin.readlines()

i=0
list = []
for line in sys.stdin.readlines():
	list.append(int(line.strip("\n")))

print sorted(list, reverse=True)[0]
print sorted(list, reverse=True)[1]
print sorted(list, reverse=True)[2] import sys sys i=0 i 0 list = [] list [] for line in sys.stdin.readlines():
	list.append(int(line.strip("\n"))) line sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines list.append(int(line.strip("\n"))) list.append list append int(line.strip("\n")) int line.strip("\n") line.strip line strip "\n" print sorted(list, reverse=True)[0] (list, reverse=True) sorted list reverse=True reverse True 0 print sorted(list, reverse=True)[1] (list, reverse=True) sorted list reverse=True reverse True 1 print sorted(list, reverse=True)[2] (list, reverse=True) sorted list reverse=True reverse True 2 i=0 0 i list = [] [] list
import sys

#list = sys.stdin.readlines()

i=0
list = []
for line in sys.stdin.readlines():
	list.append(int(line.strip("\n")))

print sorted(list, reverse=True)[0]
print sorted(list, reverse=True)[1]
print sorted(list, reverse=True)[2]