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

using namespace std;

int main(){

	int high[10];
	vector<int> higher;
	for(int i=0;i<10;i++){
		cin >> high[i];
	}

	for(int i=0;i<10;i++){
		higher.push_back(high[i]);
	}

	sort(higher.begin(),higher.end());

	for (int i=0;i<3;i++){
		cout << higher[9-i] << endl;
	}
}