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

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