#include <stdio.h>

#define MAX 100000

void CountingSort(int);

int A[MAX+5], B[MAX+5];

int main()
{
  int i;
  int n;  
  
  scanf("%d", &n);

  for( i = 1 ; i <= n ; i++ )
    scanf("%d", &A[i]);
  
  CountingSort(n);

  for( i = 1 ; i <= n ; i++ ){
    if( i > 1 ) printf(" ");
    printf("%d", B[i]);
  }
  
  printf("\n");

  return 0;
}
  
void CountingSort(int n)
{
  int i, j;
  int C[MAX+5];
  
  for( i = 0 ; i <= MAX ; i++ )
    C[i] = 0;
  
  for( j = 1 ; j <= n ; j++ )
    C[A[j]]++;

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

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