#include <iostream>
#include <iomanip>
#include <vector>
#include <complex>
#include <cmath>
#include <algorithm>
#define shosu(x) fixed<<setprecision(x)
using namespace std;
int main(){
	int high;
	vector<int> tmp;
	for(int i=0;i<10;i++){
		cin>>high;
		tmp.push_back(high);
	}
	sort(tmp.begin(),tmp.end());
	for(int i=9;i>6;i--){
		cout<<tmp[i]<<endl;
	}
}