#include <iostream>
using namespace std;
int a[100001];
void qsort(int c[],int L,int R)
{
if(L>=R)
return;
int j=(L+R)/2;
int l=L,r=R;
while(l<r)
{
while(c[l]< c[j]) l++;
while(c[r]> c[j]) r--;
if(l<r) swap(c[l++],c[r--]);
}
j=l;
qsort(c,L,j-1);
qsort(c,j+1,R);
}
int main()
{
int n;
cin>>n;
for(int i=0; i< n; i++)
cin >> a[i];
qsort(a,0,n-1);
for(int i=0; i< n; i++)
cout << a[i]<< ' ';
cout << endl;
}