#include<stdio.h>

#define N 10001

void *countingSort(int *,int *,int);

int main(){
  int i,n,A[N],B[N];

  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 n){
  int i,j;
  int C[N];

  for(i=0;i<N;i++)C[i]=0;
  
  for(i=0;i<n;i++)C[A[i]]++;

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

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

}