heightlist = list()
for i in range(10):
	heightlist.append(eval(input()))
heightlist.sort()
for i in range(-1, -4, -1):
	print(heightlist[i]) heightlist = list() heightlist list() list for i in range(10):
	heightlist.append(eval(input())) i range(10) range 10 heightlist.append(eval(input())) heightlist.append heightlist append eval(input()) eval input() input heightlist.sort() heightlist.sort heightlist sort for i in range(-1, -4, -1):
	print(heightlist[i]) i range(-1, -4, -1) range -1 -4 -1 print(heightlist[i]) print heightlist[i] heightlist i heightlist = list() list() heightlist
heightlist = list()
for i in range(10):
	heightlist.append(eval(input()))
heightlist.sort()
for i in range(-1, -4, -1):
	print(heightlist[i])