#include<stdio.h>
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
int main() {
	int n, i, j, m = 0;
	int A[10001] = {};
	scanf("%d", &n);
	while (n--) {
		scanf("%d", &i);
		A[i]++;
		if (i > m) m = i;
	}
	for (i = 0; i <= m; i++)
		for (j = 0; j < A[i]; j++)
			printf("%d%c", i, i < m ? ' ' : '\n');
	return 0;
}