#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

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