#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
using namespace std;
typedef long long ll;
inline int read(){
int s=0,w=1;
char a=getchar();
while(a<='0'||a>='9'){if(a=='-')w*=-1;a=getchar();}
while(a>='0'&&a<='9'){s=s*10+(a-'0');a=getchar();}
return s*w;
}
int n,age,st[200];
int main(){
while(1){
memset(st,0,sizeof(st));
n=read();
if(n==0) return 0;
for(int i=0;i<n;i++){
age=read();
st[age]++;
}
for(int i=0;i<n;i++){
for(int j=0;j<st[i];j++){
printf("%d",i);
if(i!=n-1) printf(" ");
}
}
printf("\n");
}
return 0;
}