#include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
int n;
int buf[100];
while(scanf("%d",&n)!=EOF){
for(int i=0;i<n;i++){
cin>>buf[i];
}
for(int i=0;i<n;i++){
for(int j=0;j<n-i-1;j++){
if(buf[j]>buf[j+1]){
int tmp=buf[j];
buf[j]=buf[j+1];
buf[j+1]=tmp;
}
}
}
for(int i=0;i<n;i++){
cout<<buf[i]<<" ";
}
cout<<endl;
}
return 0;
}