#include<iostream>

using namespace std;

void fsort(int a[])
{
    for(int i = 0; i < 5; ++i)
        for(int j = 0; j <= i; ++j)
            if(a[i] > a[j])
            {
                int tmp;
                tmp = a[i];
                a[i] = a[j];
                a[j] = tmp;
            }

    for(int i = 0; i < 4; ++i)
        cout << a[i] << " ";

    cout << a[4] << endl;
}

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