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

using namespace std;

int main()
{
	vector<int> data(10);
	for(int i = 0; i < 10; i++)cin >> data[i];
	
	sort(data.begin(), data.end());
	reverse(data.begin(), data.end());
	
	cout << data[0] << endl;
	cout << data[1] << endl;
	cout << data[2] << endl;
	
	return 0;
}