include [HTML_REMOVED]
using namespace std;
const int N = 1e5+10;
int a[N];
void qsort(int *q,int l,int r)
{
if(l >= r) return;
int i = l-1, j = r+1,x = q[l+r>>1];
while(i[HTML_REMOVED]x);
if(i < j) swap(q[i],q[j]);
}
qsort(q,l,j),qsort(q,j+1,r);
}
int main()
{
int n; cin >> n;
for(int i = 0; i < n; ++i) scanf("%d",&a[i]);
qsort(a,0,n-1);
for(int i = 0; i < n; ++i) printf("%d ",a[i]);
}