a = sorted([int(input()) for i in range(10)])
a.reverse()
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)]) a sorted([int(input()) for i in range(10)]) sorted [int(input()) for i in range(10)] 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 a = sorted([int(input()) for i in range(10)]) sorted([int(input()) for i in range(10)]) a
a = sorted([int(input()) for i in range(10)])
a.reverse()
for i in range(3):
	print(a[i])