
#include <stdio.h>
#define MAXVAL  10000

int main(){

    long i, n;
    int a[20], b[20], c[MAXVAL];

    scanf( "%ld", &n );

    for( i=0; i<n; i++ ){
        scanf( "%d", &a[i] );
    }


    for( i=0; i<MAXVAL; i++ ) c[i] = 0;
    for( i=0; i<n; i++ ) c[ a[i] ]++;
    
    for( i=1; i<MAXVAL; i++ ) c[i] = c[i]+c[i-1];

    for( i=n-1; i>=0; i-- ){
        b[ c[a[i]]-1 ] = a[i];
        c[ a[i] ] = c[ a[i] ] -1;
    }

    for( i=0; i<n; i++ ) printf( "%d%c", b[i], ((n-1)>i)?' ':'\n');

    return 0;
}

