// editor1
#include<stdio.h>
int main(){
int n;
scanf("%d", &n);
for(n <= 0);
    printf("Invalid input\n");
    return 0;
}

int scores[n];
for(int i = 0; i < n; i++){
    scanf("%d", &scores[i]);
    if(scores[i] < 0 || scores[i] > 100000){
        printf("Invalid input\n");
        return 0;
    }
}
for(int i=0;i<n-1;i++){
    int minIndex = i;
    for(int j=i+1; i<n; j++){
        if(scores[j]<scores[minIndex]){
            minIndex=j;
        }
    }
    int temp=scores[i];
    scores[i]=scores[minIndex];
    scores[minIndex]=temp;
}
for(int i = 0; i<n; i++){
    printf("%d", scores[i]);
    if(i < n - 1)printf(" ");
}
printf("\n");
return 0;
}