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

int main()
{
	std::vector<int> height(10);

	for(int i=0;i<10;++i)
	{
		std::cin >> height[i];
	}

	std::sort(height.begin(),height.end());

	std::cout << height[9] << '\n';

	std::cout << height[8] << '\n';

	std::cout << height[7] << '\n';
}