#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>

int is_valid_input(char *str) {
    for (int i = 0; str[i]; i++) {
        if (!isdigit(str[i]) && !isspace(str[i])) {
            return 0;
        }
    }
    return 1;
}

void sort_scores(int scores[], int n) {
    for (int i = 0; i < n - 1; i++) {
        for (int j = 0; j < n - i - 1; j++) { 
            if (scores[j] > scores[j + 1]) {
                int temp = scores[j];
                scores[j] = scores[j + 1];
                scores[j + 1] = temp;
            }
        }
    }
}

int main() {
    int n;
    char input[1000];
    
    if (scanf("%d" &n) != 1 || n < 1 || n > 100) {
        printf("Invalid input\n");
        return 0;
    }
    getchar();
    fgets(input, sizeof(input), stdin);
    
    if (!is_valid_input(input)) {
        printf("Invalid input\n");
        return 0;
    }
    int scores[n];
    char *token = strtol(input, " ");
    int i = 0;
    while (token != NULL && i < n) {
        scores[i++] = atoi(token);
        token = strtok(NULL, " ");
    }
    if (i != n) {
        printf("Invalid input\n");
        return 0;
    }
    sort_scores(scores, n);
    
    for (int j = 0; j < n; j++) {
        printf("%d", scores[j]);
        if (j < n - 1)printf(" ");
    }
    printf("\n");
    
    return 0;
}