#include <bits/stdc++.h>
using namespace std;

int main(void) {
    vector<int> hill(10, 0);
    for (int i = 0; i < 10; i++) {
        cin >> hill[i];
    }
    sort(hill.begin(), hill.end(),greater<int>());
    for (int i = 0; i < 3; i++) 
        cout << hill[i] << endl;
    return 0;
}
