#include <stdio.h>
#define MAX 10000

void Countingsort(int [],int *,int);

int main(void){
  
  int A[MAX];
  int B[MAX];
  int n;
  int i;
  
  scanf("%d",&n);
  
  for(i=0;i<n;i++)
    scanf("%d",&A[i]);
  
  Countingsort(A,B,n);


  for(i=0;i<n-1;i++)
    printf("%d ",B[i]);
  printf("%d\n",B[i]);

  return 0;
}


void Countingsort(int A[],int *B,int k){

  int i,j;
  int C[k];

  for(i=0;i<=k;i++)
    C[i] = 0;

  for(j=0;j<k;j++)
    C[A[j]] = C[A[j]]+1;

  for(i = 1;i<=k;i++)
    C[i] = C[i] + C[i-1];

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