#include <stdio.h>
#include <stdlib.h>
#define M 2000000
#define MA 10000
 
main(){
  int n, i;
  int *A, *B;
  int C[MA+1];
   
  scanf("%d", &n);
   
  A = B = malloc(sizeof(int)*n+1);

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