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

int main() {
	// your code goes here
	vector<int> mountain;
	int x;
	for(int i=0;i<10;i++){
		cin >> x;
		mountain.push_back(x);
	}
	sort(mountain.begin(),mountain.end(),greater<int>());
	for(int i=0;i<3;i++)
	cout << mountain[i] << endl;

	return 0;
}