#! /usr/bin/env python
# -*- coding: utf-8 -*-

def main():
	mountains = []
	for i in range(10):
		mountains.append(int(input()))
	
	mountains = sorted(mountains, reverse = True)

	for i in range(3):
		print(mountains[i])


if __name__ == '__main__':
    main() def main():
	mountains = []
	for i in range(10):
		mountains.append(int(input()))
	
	mountains = sorted(mountains, reverse = True)

	for i in range(3):
		print(mountains[i]) main mountains = [] mountains [] for i in range(10):
		mountains.append(int(input()))
	
	 i range(10) range 10 mountains.append(int(input())) mountains.append mountains append int(input()) int input() input mountains = sorted(mountains, reverse = True) mountains sorted(mountains, reverse = True) sorted mountains reverse = True reverse True for i in range(3):
		print(mountains[i]) i range(3) range 3 print(mountains[i]) print mountains[i] mountains i if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
	mountains = []
	for i in range(10):
		mountains.append(int(input()))
	
	mountains = sorted(mountains, reverse = True)

	for i in range(3):
		print(mountains[i]) def main():
	mountains = []
	for i in range(10):
		mountains.append(int(input()))
	
	mountains = sorted(mountains, reverse = True)

	for i in range(3):
		print(mountains[i]) main
#! /usr/bin/env python
# -*- coding: utf-8 -*-

def main():
	mountains = []
	for i in range(10):
		mountains.append(int(input()))
	
	mountains = sorted(mountains, reverse = True)

	for i in range(3):
		print(mountains[i])


if __name__ == '__main__':
    main()