#include <stdio.h>
#include <stdlib.h>
int main(){
    int n;
    scanf("%d" , &n);
    if (n < 0){
        printf("Invalid Input\n");
        return 0;
    }
int* priorities = (int*)malloc(n* sizeof(int));
for (int i = 0; i < n; i++){
    scanf("%d" , &priorities[i]);
}
// Sort the priorities in ascending order
for (int i = 0; i < n - 1; i++){
    for (int j = i + 1; j < n; j++){
        if(priorities[i]> priorities[j]){
            int temp = priorities[i];
            priorities[i]=priorities[j];
            priorities[j] = temp;
        }
    }
}
// Print the sorted prioritied
for (int i = 0; i < n; i++){
    printf("%d" , priorities[i]);
}
printf("\n");
free(priorities);
return