int main() {
int n,t;
int a[1001]={0};
while (scanf("%d", &n)!=EOF){
for(int i=0;i<n;i++)
scanf("%d",&a[i]);
for(int i=1;i<n;i++)
for(int k =0;k<n-1;k++)
if(a[k]>a[k+1]){
t = a[k];
a[k] =a[k+1];
a[k+1] =t;
}
for(int i=0;i<n;i++){
printf("%-d ",a[i]);
}
printf("\n");
}
return 0;
}