#include<stdio.h>

#define MAX 200001
#define VMAX 10000

int A[MAX],B[MAX],C[VMAX+1];

int main(char args[]){
  
  int i,j,n;
  
  
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    scanf("%d",&A[i]);
  }
  
  for(i=0;i<=VMAX;i++) C[i] = 0;
  
  for(j=1;j<=n;j++){
    C[A[j]]++;
  }
  
  for(i=1;i<=n;i++){
    C[i] = C[i] + C[i-1];
  }
  
  for(j=n;j>0;j--) {
    B[ C[A[j]] ] = A[j];
    C[A[j]]--;
  }
  
  for(i=1;i<n;i++){
    printf("%d ",B[i]);
  }
  printf("%d\n",B[n]);
  
  return 0;
}