a=[int(input()) for i in range(10)]
a.sort(reverse=True)
for i, iv in enumerate(a):
	print(iv)
	if i >= 2:
		break 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=[int(input()) for i in range(10)] a [int(input()) for i in range(10)] a.sort(reverse=True) a.sort a sort reverse=True reverse True for i, iv in enumerate(a):
	print(iv)
	if i >= 2:
		break i iv enumerate(a) enumerate a print(iv) print iv if i >= 2:
		break i >= 2 i 2 break a=[int(input()) for i in range(10)] [int(input()) for i in range(10)] a
a=[int(input()) for i in range(10)]
a.sort(reverse=True)
for i, iv in enumerate(a):
	print(iv)
	if i >= 2:
		break