#include <stdio.h>
int main ()
{
    int a[6],i,m,k;
    for (i=0;i<5;i++)
        scanf("%d",&a[i]);
    for (i=0;i<5;i++)
    {
        for (m=i+1;m<5;m++)
        {
            if (a[i]<a[m])
            {
                k=a[i];
                a[i]=a[m];
                a[m]=k;            
            }
            
        }
    }
    for (i=0;i<5;i++)
        printf("%d " , a[i]);
    return 0;
}