#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main( void )
{
	vector <int> heights;
	for ( int i = 0; i < 10; i++ )
	{
		int height;
		cin >> height;
		heights.push_back( height );
	}

	sort( heights.rbegin(), heights.rend() );

	for ( int i = 0; i < 3; i++ )
	{
		cout << heights.at(i) << endl;
	}

	return 0;
}