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

int main(int argc, const char * argv[])
{
    int data[5];
    for (int i = 0; i < 5; i++) {
        cin >> data[i];
    }
    sort(&data[0],&data[5]);
    for (int i = 4; 0 <= i; i--) {
        cout << data[i];
        (i != 0)? cout << " ": cout << endl;
    }
    return 0;
}