#include <iostream>
using namespace std;

int main() {

    int arr[6] = { 0 };
    int len = sizeof(arr) / sizeof(int);
    
    for (int i = 0; i < len; i++) {
        cin >> arr[i];
    }
    int tmp;
    //int  min;
    // write your code here......
    for(int k=0;k<=len-1;k++)
    {
        //min=arr[k];
        for (int i=k+1;i<len;i++)
        {
            if(arr[k]>arr[i])
            {
                tmp=arr[k];
                arr[k]=arr[i];
                arr[i]=tmp;
            }
        }
    }
    for(int i=0;i<len;i++)
    {
        cout<<arr[i]<<" ";
    }
    return 0;
}