list = list()

for i in range(10):

	list.append(eval(input()))

list.sort()

list.reverse()

for i in range(3):

	print(list[i])
import sys



l = sorted([int(s) for s in sys.stdin], reverse=True)[:3]

print('\n'.join([str(s) for s in l]))
list = list()
for i in range(10):
    list.append(eval(input()))
list.sort()
list.reverse()
for i in range(3):
    print(list[i])

import sys

l = sorted([int(s) for s in sys.stdin], reverse=True)[:3]
print("\n".join([str(s) for s in l]))

-list = list() -for i in range(10): -    list.append(eval(input())) -list.sort() -list.reverse() -for i in range(3): -    print(list[i]) +import sys + +l = sorted([int(s) for s in sys.stdin], reverse=True)[:3] +print("\n".join([str(s) for s in l]))