#include<stdio.h>

#define N 2000000
#define K 10000
int k,n;

main(){
  int i,j,k,A[N],B[N],C[K];
  k = K;
  
  scanf("%d",&n);
  for(i=0;i<n;i++) scanf("%d",&A[i]);  
  

  for(i=0;i<=k;i++){
    C[i] = 0;
  }
  for(j=1;j<n+1;j++){
    C[A[j]]++;
  }
  for(i=1;i<k+1;i++){
    C[i]=C[i]+C[i-1];
  }
  for(j=1;j<=n;j++){
    B[C[A[j]]] = A[j];
    C[A[j]]--;
  }
  for(i=1;i<=n;i++){
    printf("%d", B[i]);
    if(i<n)printf(" ");
    else printf("\n");  
  }

 return 0;
}