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