#include<iostream>
#include<sstream>
#include<cstdio>
#include<fstream>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<deque>
#include<map>
#include<set>
#include<algorithm>
#include<string>
#include<cstdlib>
#include<cmath>
using namespace std;

int main(){
	vector<int> args;
	for(int x=0;x<10;x++){
		int j;scanf("%d",&j);args.push_back(j);
	}
	sort(args.begin(),args.end());
	for(int x=0;x<3;x++){
		printf("%d\n",args[args.size()-1-x]);
	}
	return 0;
}	