#include <stdio.h>
#define N 2000000
  
int A[N],B[N],C[N];
 
main()
{
 
   
  int i,z,j,n=0;
   
   
  scanf("%d",&n)
   
  for(i = 0; i <z ; i++){
    scanf("%d",&A[i]);
   C[A[i]]++;
    
   if(0 < A[i]){
      k = A[i];
   }
  }
  for(i = 1; i <= n; i++){
    C[i] = C[i] + C[i-1];
  }
  for(j = z-1; j >= 0; j--){
    B[C[A[j]]] = A[j];
    C[A[j]]--;
  }
 
  for(i = 1; i <= z; i++){
    if(i!=z){
      printf("%d ",B[i]);
    }
    else {
       
      printf("%d\n",B[i]);
    }
  }
  return 0;
}