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

using namespace std;

int main()
{
	vector<int> high(10);
	int i;
	
	for(i = 0; i < 10; i++){
		scanf("%d",&high[i]);
	}
	
	sort(high.begin(), high.end());
	
	cout << high[9] << endl;
	cout << high[8] << endl;
	cout << high[7] << endl;
	
}