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

int main() {

    vector<int> vec;
    int t;
    while(cin >> t) {
       vec.push_back(t);
    }

    sort(vec.begin(), vec.end(), greater<int>());

    for(int i = 0; i < 3; i++) {
        cout << vec[i] << endl;
    }

    return 0;
}
