#include<iostream>
#include<algorithm>
#include<set>
#include<map>
#include<vector>
#include<queue>
#include<cstring>
#include<cmath>
#include<cstdio>
#include<cstdlib>
using namespace std;
#define REP(i,a,n) for(int i = a ; i < n ; i++)
#define rep(i,n) REP(i,0,n)

typedef long long ll;

int main(){
  vector<int> v(10);
  rep(i,10) cin>>v[i];
  sort(v.rbegin(),v.rend());
  rep(i,3) cout<<v[i]<<endl;
}