#include<iostream>
using namespace std;

void bubbleSort( int* x )
{
    for( int i = 0; i < 4; i++ )
    {
        for( int j = i; j < 5; j++ )
        {
            if( x[i] > x[j] )
            {
                int temp = x[i];
                x[i] = x[j];
                x[j] = temp;
            }
        }
    }
}

int main()
{
    int a[5];

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

    bubbleSort(a);

    for( int i = 4; i >= 0; i-- )
    {
        cout << a[i];
        if( i != 0 )
            cout << " ";
    }
    cout << endl;
    return 0;
}

