#include <iostream>
#include <string>
#include <algorithm>
#include <utility>
#include <iomanip>
#include <functional>
#include <queue>
#include <cmath>
#define INF 100000000
#define MOD 1000000007
using namespace std;


int main(){
    int a[5];
    for(int i=0; i<5; i++){
        cin >> a[i];
    }
    
    sort(a,a+5);
    
    for(int i=4; i>=0; i--){
        cout<<a[i];
        if(i==0){
            cout<<endl;
        }else{
            cout<<" ";
        }
    }
    return 0;
}

