#include <iostream>
#include <algorithm>
using namespace std;
int main() {
    int v[10];
    for (int i=0; i<10; ++i) {
        cin >> v[i];
    }
    sort(v, v + 10);
    cout << v[9] << endl << v[8] << endl << v[7] << endl;
    return 0;
}