#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>

int main(void)
{
	int height;
	int i=0;
	std::vector<int> height_array;
	
	while(i<10){
		std::cin >> height;
		height_array.push_back(height);
		i++;
	}
	sort(height_array.begin(), height_array.end(), std::greater<int>());
	for(int i=0; i<3; i++){
		std::cout << height_array[i] << std::endl;
	}
	
	
	return 0;
	
}