#include "bits/stdc++.h"
using namespace std;
#define REP(i,m,n) for(long long i=m;i<n;++i)
#define INF 10000000000000000
#define MOD 1000000007
#define ll long long
#define mp make_pair
#define all(v) v.begin(),v.end()

vector<int>v;

int main(){
	REP(i,0,10){
		int tmp;
		cin>>tmp;
		v.push_back(tmp);
	}
	sort(all(v));
	printf("%d\n%d\n%d\n",v[9],v[8],v[7]);
	return 0;
}