#include<stdio.h>
void main()
{
int temp;
int n,i,j, aaa[5] = {'\0'};
int bbb[26];
scanf_s("%d", &n);
for (i = 0; i < n; i++)
scanf_s("%d", &aaa[i]);
for(i=0;i<n;i++)
for(j=i;j<n;j++)
if (aaa[i] > aaa[j])
{
temp = aaa[i];
aaa[i] = aaa[j];
aaa[j] = temp;
}
for (i = 0; i < n; i++)
{
if (aaa[i] < 65)
{
printf("%d ", aaa[i]);
}
else
printf("%c ", aaa[i]);
}
}