#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
    int a,b,c,d,e,i,k,arr[6];
    cin>>a>>b>>c>>d>>e;
    arr[0]=a;
    arr[1]=b;
    arr[2]=c;
    arr[3]=d;
    arr[4]=e;
    sort(arr,arr+5);
    for(i=4;i>=0;i--)
    {
        if(i==0)
            cout<<arr[i];
        else
        cout<<arr[i]<<" ";
    }
    return 0;
}