#define _USE_MATH_DEFINES
#include <iostream> 
#include <string>
#include <map>
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std; 
int main(){
	vector<int> v;
	for(int i=1;i<=10;i++){
		int h;
		cin >> h;
		v.push_back(h);
	}
	std::sort(v.begin(), v.end());
	std::reverse(v.begin(), v.end());
	for(int i=0;i<3;i++){
		cout << v[i] << endl;
	}
	return 0;
}
