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

using namespace std;

int main(void) {
        vector<int> a(5, 0);

        for (int i = 0; i < 5; i++){
                cin >> a[i];
        }

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

        for(int i = 0; i < 5 ; i++) {
                cout << a[i] << " ";
        }
        cout << endl;
                return 0;
}