#include <bits/stdc++.h>
using namespace std;
using lint = int64_t;
#define rep(i, n) for(int i=0; i<(n); ++i)
#define all(v)    begin(v), end(v)
#define in        []{lint n; cin>>n; return n;}()

int main(){
    vector<int> A(10);
    rep( i, 10 ) A[i] = in;
    sort( all(A), greater<int>() );
    rep( i, 3 ) cout << A[i] << "\n";
}

