#include <stdio.h>
int a[1000000] ,b[1000000] ;
int main ()
{
int t , i ,m ,j,x , p ;
while (scanf ("%d",&t) ==1 && t!=0)
{
memset (a,0,sizeof a) ;
memset (b,0,sizeof b) ;
for (i=0 ; i<t ; i++)
{
scanf ("%d",&m) ;
a[m] ++ ;
}
for (i=1; i<=99 ; i++)
{
a[i] = a[i-1] + a[i] ;
}
int f=0;
for (i=1 ; i<=99 ; i++)
{
if (a[i] != a[i-1])
{
x= a[i] - a[i-1] ;
p=0;
for (j=0 ; j<x ; j++)
{
b[p] = i ;
if(f) printf(" ");
printf ("%d",b[p]) ;
f=1;
p++ ;
}
}
}
printf ("\n") ;
}
return 0 ;
}
int a[1000000] ,b[1000000] ;
int main ()
{
int t , i ,m ,j,x , p ;
while (scanf ("%d",&t) ==1 && t!=0)
{
memset (a,0,sizeof a) ;
memset (b,0,sizeof b) ;
for (i=0 ; i<t ; i++)
{
scanf ("%d",&m) ;
a[m] ++ ;
}
for (i=1; i<=99 ; i++)
{
a[i] = a[i-1] + a[i] ;
}
int f=0;
for (i=1 ; i<=99 ; i++)
{
if (a[i] != a[i-1])
{
x= a[i] - a[i-1] ;
p=0;
for (j=0 ; j<x ; j++)
{
b[p] = i ;
if(f) printf(" ");
printf ("%d",b[p]) ;
f=1;
p++ ;
}
}
}
printf ("\n") ;
}
return 0 ;
}