#include<stdio.h>

#define N 200000
int main(void){
  
  int i, j, n,k=0;
  int A[N], B[N], C[N];
  
  scanf("%d",&n);
  
  for(i=0;i<n;i++){
    scanf("%d", &A[i]);
    if(A[i]>k) k=A[i];
  }
  //printf("%d\n",k);
  // ????????°????¨????
  // 0 default
  
  for(i=0;i<=k;i++){
    C[i] = 0;
  }
  
  for(j=0;j<n;j++){
    C[A[j]]++;
  }
  
  for(i=1;i<=k;i++){
    C[i] = C[i] + C[i-1];
  }

  for(j=n-1;j>=0;j--){
    B[C[A[j]]] = A[j];
    C[A[j]]--;
  }

    for(j=1;j<n+1;j++){
      if(j != 1) printf(" ");
      printf("%d", B[j]);
  }
    printf("\n");
    return 0;
}