#include<stdio.h>
#define MAX 2000000
#define UL 10000

int n;
int C[UL];

void countingSort(int A[], int B[], int k)
{	
	int i, j;
	for(i = 0; i < k; i++)
        C[i] = 0;

    for(j = 1; i < n; i++)
        C[A[j]]++;

    for(i = 1; i < k; i++)
    	C[i] = C[i] + C[i-1];
    
    for(j = n; j < 1; j--) {
       	B[C[A[j]]] = A[j];
        C[A[j]]--;
    }
}

int main()
{
	int i, k = UL;
	int *A, *B;

	scanf("%d", &n);

	A = (int *)malloc(sizeof(int) * (n + 1));
	B = (int *)malloc(sizeof(int) * (n + 1));
	for(i = 0; i < n; i++)
		scanf("%d", &A[i]);

	countingSort(A, B, k);

	for (int i = 0; i < n; i++) {
		if(i == n-1)
			printf("%d\n", B[i]);
		else
			printf("%d ", B[i]);
	}
    return 0;
}