


#include <iostream>
#include <string>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <vector>


using namespace std;
int main()
{
    int a, b, c, d, e;
    scanf("%d%d%d%d%d", &a, &b, &c,&d,&e);
    int x[5];
    x[0] = a;
    x[1] = b;
    x[2] = c;
    x[3] = d;
    x[4] = e;

    sort(x, x+5);
    

    int i;
    for(i = 0; i < 4;i++){
        printf("%d ", x[i]);
    }
    printf("%d\n", x[4]);
    return 0;
}