#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn=1e5;
ll a[maxn];
void swap(int& a,int& b){
int t=a;a=b;b=t;
}
void bsort(int n){
for(int i=0;i<n;i++){
for(int j=0;j<n-i;j++){
if(a[j]<a[j-1]) swap(a[j],a[j-1]);
}
}
}
int main(){
int n;
scanf("%d",&n);
for(int i=0;i<n;i++) scanf("%lld",&a[i]);
bsort(n);
for(int j=0;j<n;j++) printf("%d ",a[j]);
return 0;
}