#include
#define N 100
void selection_sort(int a[],int len);
int main()
{
int a[N],i=0,len;
while(scanf("%d",&a[i])==1)
{
i++;
}
len=i;
selection_sort(a,len);
for(i=0;i{
if(i==0)
printf("%d",a[i]);
else
printf(" %d",a[i]);
}
printf("\n");
return 0;
}
void selection_sort(int a[],int len)
{int i,j,t;
for(i=j=0;iif(a[i]>a[j])j=i;
t=a[len-1]; a[len-1]=a[j]; a[j]=t;
if(len>1)selection_sort(a,len-1);
}