#include <stdio.h>

#define k 10000

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

    int A[n + 1], B[n + 1], C[k + 1];

    for (int i = 0; i <= k; i++) C[i] = 0;

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

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

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

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

    return 0;
}

