#include<stdio.h>

#define MAX 2000001
#define VMAX 10001

int main() {
  int n, i, j, a[MAX], c[MAX], x[MAX];

  for(i = 0; i < MAX; i++) c[i] = 0;

  scanf("%d", &n);

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

  for(i = 1; i <= VMAX; i++){
    c[i] += c[i-1];
  }

  for(j = 1; j <= n; j++){
    x[c[a[j]]] = a[j];
    c[a[j]]--;
  }

  for(i = 0; i < n; i++){
    printf("%d", x[i]);
    if(i != n-1) printf(" ");
  }

  printf("\n");

  return 0;
}

