#include <bits/stdc++.h>
using  namespace std;
#define ll    long long int
#define pai     pair<int,int>
#define vi      vector<int>
#define vd      vector<double>
#define mpi     map<int,int>
#define mps     map<string,int>
#define sti     stack<int>
#define stc     stack<char>
#define sei     set<int>
#define ses     set<string>
#define multii  multiset<int>

 int main()
{
  /*#ifndef ONLINE_JUDGE
  freopen("tin.txt","r",stdin);
  freopen("tout.txt","w",stdout);
  #endif*/
vi v;
 ll n;
 while(cin>>n){
    v.push_back(n);

 }
sort(v.begin(),v.end(),greater<int>());
 int c=0;
for(int i=0;i<3;i++){
   cout<<v[i]<<endl;
}
}





