#include <stdio.h>
#include <stdlib.h>
#define MAX 2000001

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


