#include <stdio.h>

int main() {
    int n;
    while ((scanf("%d", &n)) != EOF) {
        int Arr[n];
        for (int i = 0; i < n; i++) {
            scanf("%d", &Arr[i]);
        }
        int count = n;
        while (n--) {
            for (int j = 0; j < n; j++) {
                if (Arr[j] > Arr[j + 1]) {
                    int temp = Arr[j + 1];
                    Arr[j + 1] = Arr[j];
                    Arr[j] = temp;
                }
            }
        }
        for (int k = 0; k < count; k++) {
            printf("%d ", Arr[k]);
        }
    }
    return 0;
}