#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <cmath>
using namespace std;
typedef vector<int> VI;
#define REP( i, m, n ) for ( int i = (int)( m ); i < (int)( n ); ++i )

int main() {
    int tmp;
    VI heights;
    while (cin >> tmp) {
        heights.push_back(tmp);
    }
    sort(heights.begin(), heights.end(), [](int a, int b){return a > b;});
    
    REP(i, 0, 3) {
        cout << heights[i] << endl;
    }
    
    return 0;
}