
#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>

using namespace std;

int main(void) 
{
    int i;
    int hs[10];

    for (i = 0; i < 10; i++) {
        cin >> hs[i];
    }

    sort(hs, hs+10, greater<int>());

    for (i = 0; i < 3; i++) {
        cout << hs[i] << "\n";
    }

    return 0;
}