
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <stack>
#include <cctype>
#include <complex>
#include <vector>
#include <algorithm>

using namespace std;


bool solve(){

	vector<int> h(10,0);
	for(int i=0;i<10;i++){
		cin>> h[i];
	}
	sort(h.begin(),h.end());
	
	cout<< h[9]<< "\n"<< h[8]<< "\n"<< h[7]<< endl;
	
	return true;
}

int main(){
	cout.setf(ios::fixed);
	cout.precision(10);
	solve();

	return 0;
}

 