#include <stdio.h>
#define N 10000000
int i,k,num,math[N];

void input(void){
    scanf("%d",&num);
    for(i=0;i<=num;i++){
        scanf("%d",&math[i]);
        if(k < math[i]) k = math[i];
    }
}

int main(void){
    int j,count[N],pri[N];
    //input
    input();
    for(i=0;i<=k;i++)
        count[i]=0;
    //calc       
    for(j=0;j<num;j++)
        count[math[j]]++;
            
    for(i=0;i<k;i++)
        count[i+1]+=count[i];
        
    for (i = num - 1; i >= 0; i--) {
        pri[--count[math[i]]] = math[i];
        count[math[j]]--;
    }
    //output
    for(i=0;i<num;i++){
        if(i>0)printf(" ");
        printf("%d",pri[i]);
    }
    printf("\n");
    return 0;
}
