// editor4
#include<stdio.h>
#include<stdlib.h>
int stack[max];
int top=-1;
int s1[max];
int main(){
    int n;
    scanf("%d",&n);
    if(n<0){
        printf("Invalid input")
    return 0;
    }
    for (int i=0;i<n;i++){
        int x;
        scanf("%d",&x);
        s1[++top]=x;
    }
    for(int i = 0; i<top;i++){
        for(int j=i+1;j<=top;j++){
            if(s1[i]>s1[j]){
                int temp = s1[i];
                s1[i]=s1[j];
                s1[j]=temp;
            }
        }
    }
    for(int i =0;i<=top;i++){
        printf("%d ",s1[i]);
    }
    return 0;
}
    }
}