// editor5
#include <stdio.h>
#include <stdlib.h> // Required for qsort

// Comparison function for qsort to sort integers in ascending order
int compareIntegers(const void *a, const void *b) {
    return ((int)a - (int)b);
}

int main() {
    int N;

    // Read N and validate if it's a valid integer
    if (scanf("%d", &N) != 1) {
        printf("Invalid input\n");
        return 1;
    }

    // Validate N against constraints
    if (N < 1 || N > 100) {
        printf("Invalid input\n");
        return 1;
    }

    int speeds; // Declare an array to store speeds

    // Read N speeds and validate each input
    for (int i = 0; i < N; i++) {
        if (scanf("%d", &speeds[i]) != 1) {
            printf("Invalid input\n");
            return 1;
        }
    }

    // Sort the speeds array using qsort
    qsort(speeds, N, sizeof(int), compareIntegers);

    // Print the sorted speeds, separated by spaces
    for (int i = 0; i < N; i++) {
        printf("%d%s", speeds[i], (i == N - 1) ? "" : " ");
    }
    printf("\n");

    return 0;
}