#include<stdio.h>
#include<stdlib.h>

int main(){
    int n;
    if(scanf("%d", &n) != 1 || n < 1 || n > 100) {
        printf("Invalid input\n");
        return 0;
    }
    int* scores = malloc(n * sizeof(int));
    char check = 0;
    for(int i = 0; i < n; i++) {
        if(scanf("%d%c", &scores[i], &check) != 2 || (check !=' '&& check != '\n')) {
            printf("Invalid input\n");
            return 0;
        }
    }
    
    for(int i = 0; i < n - 1; i++) {
        for(int j = i +1; j < n; j++) {
            if(scores[i] > scores[j] {
                int temp = scores[i];
                scores[i] = scores[j];
                scores[j] = temp;
            }
        }
    }
    for (int i = 0; i < n; i++){
        printf("%d%c", scores[i], i == n - 1 ? '\n' : ' ');
    }
    free(scores);
    return 0;
}