a = sorted([int(input()) for i in range(10)],reverse=True)
for i in range(3):
	print(a[i]) int(input()) for i in range(10) for i in range(10) i range(10) range 10 for i in range(10) int(input()) int input() input a = sorted([int(input()) for i in range(10)],reverse=True) a sorted([int(input()) for i in range(10)],reverse=True) sorted [int(input()) for i in range(10)] reverse=True reverse True for i in range(3):
	print(a[i]) i range(3) range 3 print(a[i]) print a[i] a i a = sorted([int(input()) for i in range(10)],reverse=True) sorted([int(input()) for i in range(10)],reverse=True) a
a = sorted([int(input()) for i in range(10)],reverse=True)
for i in range(3):
	print(a[i])