#include <stdio.h>
int main()
{
int n,i,j,t,a[1001];
while(scanf("%d",&n)!=EOF)
{
for(i=1;i<=n;i++)
scanf("%d",&a[i]);
for(i=1;i<=n-1;i++)
{
for(j=1;j<=n-i;j++)
{
if(a[j]>a[j+1])
{t=a[j];a[j]=a[j+1];a[j+1]=t;}
}
}
for(i=1;i<=n;i++)
{printf("%d ",a[i]);
}
printf("\n");
}
}