#include <stdio.h>
#include <stdlib.h>
#define Max 2000000
#define AMax 10000
int main() {
  /* code */
  int A[AMax];
  int B[AMax];
  int C[AMax];

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