#include <bits/stdc++.h>

using namespace std;

int main() {
	vector<int> heights;
	int meter;

	for(int index = 0; index < 10; ++index) {
		cin >> meter;
		heights.push_back(meter);
	}
	
	sort(heights.begin(), heights.end());
	
	cout << heights[9] << endl;
	cout << heights[8] << endl;
	cout << heights[7] << endl;
	
	return 0;
}
