#include <iostream>
#include <algorithm>
using namespace std;

void sort(int* begin, int* end) {
    std::sort(begin, end);
}

int high[10];

int main() {
    for(int i = 0; i < 10; i++) {
        cin >> high[i];
    }
    sort(high, high + 10);
    cout << high[9] << endl;
    cout << high[8] << endl;
    cout << high[7] << endl;
    return 0;
}
