#include <stdio.h>
#define N 20000
int main(){
  int i,num,j;
  int A[200000];
  int B[200000];
  int C[200000];


scanf("%d",&num);


for(i=0;i<num;i++){
  scanf("%d",&A[i]);
}

for(i=0;i<N;i++){
  C[i]=0;
}

for(j=0;j<num;j++){
  C[A[j]] =C[A[j]] +1;
}

for(i=1;i<=N;i++){
  C[i] = C[i] + C[i-1];
}

for(j=num-1;j>=0;j--){
    B[C[A[j]]] = A[j];
    C[A[j]] = C[A[j]] -1;
}




for(i=1;i<num;i++){
  printf("%d ",B[i]);
}
printf("%d\n",B[num]);

return 0;
}