//by azidoazideazide(c2n14)
#include<iostream>
#include<string>
#include<cmath>
#include<algorithm> //#include<map>
#include<vector>
using namespace std;
typedef long long ll;
//#include<fstream>
//ifstream fin("rps.in");
//ofstream fout("rps.out");
#define pb push_back
vector<int> v;
int main(){
	ios::sync_with_stdio(0);
	int n;
    while(cin>>n){
        v.pb(n);
    }
    sort(v.begin(),v.end(),[=](int a, int b){return(a>b);});
    cout<<v[0]<<endl<<v[1]<<endl<<v[2]<<endl;
return 0;
}
