#include<stdio.h>
#include<stdlib.h>

#define MAX 2000000
#define UL 10000

int main()
{
	int i, j, k = UL;
	int n;
	int C[UL];
	int A[MAX], B[MAX];

	scanf("%d", &n);

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

	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 > 0; j--) {
       	B[C[A[j]]] = A[j];
        C[A[j]]--;
    }

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