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

int main() {
    vector<int> v(5);
    for(int i=0; i<5; ++i) {
        cin >> v[i];
    }
    sort(v.rbegin(), v.rend());
    for(int i=0; i<5; ++i) {
        cout << v[i] << " \n"[i == 4] << flush;
    }
}
