#include <iostream>
using namespace std;
int main(){ int n,v[101],i,ok,aux; cin>>n; for (i=1;i<=n;i++) cin>>v[i]; do{ ok=1; for (i=1;i<n;i++) if (v[i]>v[i+1]) { ok=0; aux=v[i]; v[i]=v[i+1]; v[i+1]=aux; } } while (ok==0); for (i=1;i<=n;i++) cout<<v[i]<<" ";
}