#include
using namespace std;
int main()
{
int n;
cin>>n;
int a[n];
for(int i=0;i<n;i++){
cin>>a[i];
}
for(int t=1;t<n;t++){
int j=t-1;
int e=a[t];
int f=0;
while(j>=0 && a[j]>e){
a[j+1]=a[j];
j--;
f=0;
}
f=1;
a[j+1]=e;
}
for(int i=0;i<n;i++){
cout<<a[i];
}
return 0;
}