include <stdio.h>

int main(void){ 
  int A[10],i,k=0,j,n,C[10000],B[10];
  
  scanf("%d",&n);
  for(j = 1 ; j <= n ; j++){
    scanf("%d",&A[j]);
  }
  for(j = 1 ; j <= n ; j++){
    if(A[j] > k){   
      k = A[j];
    }
  }
  
  for(i = 0 ; i <= k ; i++){
    C[i] = 0;
  }
  for(j = 1 ; j <= n ; j++){
    C[A[j]]++;
  }

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