#include<bits/stdc++.h>
#include<iostream>
#define LL unsigned long long
#define BEG freopen("sorttest.in","r",stdin);freopen("sorttest.out","w",stdout);
#define END fclose(stdin);fclose(stdout);
using namespace std;
const LL N=50005,M=2000005;
int n,m,tot;
int a[M];
int main(){
BEG
cin>>n;
for(int i=0;i<n;i++){
cin>>a[i];
}
sort(a,a+n);
for(int i=0;i<n;i++)
cout<<a[i]<<" ";
END
return 0;
}