#include<stdio.h>
int main(void){
int a[10],i,j,k,l,m,run;

for(i=0;i<5;i++){
    scanf("%d",&a[i]);
}
for(j=0;j<5;j++){
    for(k=0;k<5;k++){
        if(a[k]<a[k+1]){
            run=a[k];
            a[k]=a[k+1];
            a[k+1]=run;
        }
    }
}
for(l=0;l<5;l++){
printf("%d ",a[l]);
//if(l<4)printf(" ");
//else printf("\n");
}
return 0;
}