#include <bits/stdc++.h>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int n,i,j,t;
while(cin>>n)
{
int a[n];
for(i=0; i<n; ++i) cin>>a[i];
for(i=0; i<n; ++i)
{
for(j=i+1; j<n; --j)
if(a[i]>a[j]) {t=a[i]; a[i]=a[j]; a[j]=t;}
}
for(i=0; i<n; ++i) cout<<a[i]<<" ";
cout <<endl;
}
return 0;
}