#include<stdio.h>

int main ()
{
    long long int a,b,c,d,e;
    scanf("%lld %lld %lld %lld %lld",&a,&b,&c,&d,&e);
     long long int number[30];
    long long int i, j,temp;
    number[0]=a;
    number[1]=b;
    number[2]=c;
    number[3]=d;
    number[4]=e;

    for (i = 0; i < 5; ++i)
    {
        for (j = i + 1; j < 5; ++j)
        {
            if (number[i] < number[j])
            {
                temp= number[i];
                number[i] = number[j];
                number[j] = temp;
            }
        }
    }
    a=number[0];
    b=number[1];
    c=number[2];
    d=number[3];
    e=number[4];
     printf("%lld %lld %lld %lld %lld",a,b,c,d,e);

return 0;
}