#include <stdio.h>

int main(){

  int i,j,k=0,n,A[100000],B[100000],C[100000];

  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&A[i+1]);
    if(k <= A[i+1]){
      k = A[i+1];
    }
  }

  k++;

  for(i=0;i<=k;i++){
    C[i] = 0;
  }
  for(j=1;j<=n;j++){
    C[A[j]] = C[A[j]]+1;
  }
  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(i=1;i<n;i++){
    printf("%d ",B[i]);
  }

  printf("%d\n",B[n]);

  return 0;
}