// editor2
#include <stdio.h>

int main() {
    int n;
    scanf("%d", &n);
    
    if (n < 0) {
        print("Invalid input\n");
        return 0;
    }
    int scores;
    for (int i = 0; i < n; i++) {
        scanf("%d", &scores[i]);
    }
    for (int i = 0; i < n; 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;
            }
        }
    }
    for (int i = 0; i < n; i++) {
        printf("%d", scores[i]);
    }
    printf("\n");
    return 0;
}