#include<stdio.h>
#include<stdlib.h>
#define Max 2000001
#define VMAX 10000
//used template
int main(){
  unsigned short *A,*B,maxin=0;
  int n,i;
  short C[VMAX+1];
  scanf("%d",&n);
  A=(short *)malloc(sizeof(short)*n+1);
  B=(short *)malloc(sizeof(short)*n+1);
  for(i=1;i<n+1;i++){
    scanf("%hu",&A[i]);
    if(maxin<A[i])maxin=A[i];
  }
  for(i=0;i<=maxin;i++){
    C[i]=0;
  }
  for(i=1;i<n+1;i++){
    C[A[i]]++;
  }
  for(i=1;i<=maxin;i++){
    C[i]+=C[i-1];
  }
  for(i=n;i>0;i--){
    B[C[A[i]]]=A[i];
    C[A[i]]--;
  }
  free(A);
  for(i=1;i<n;i++){
    printf("%u ",B[i]);
  }
  printf("%u\n",B[i]);
  free(B);
  return 0;
}

