/*
#include <stdio.h>
typedef struct
{
int grade;
int rank;
}student;
int main()
{
int n,i,j;
student a[1000];
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&a[i].grade);
a[i].rank=1;
}
for(i=1;i<=n;i++)
{
for(j=1;j<=n;j++)
{
if(a[i].grade<a[j].grade)
{
a[i].rank++;
}
}
}
for(i=1;i<=n;i++)
{
printf("%d %d\n",a[i].grade,a[i].rank);
}
return 0;
}
*/
/*
#include <stdio.h>
typedef struct
{
int country;
int number;
int score;
}medal;
int main()
{
medal a[100];
int n,i,j,cnt=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d %d %d",&a[i].country,&a[i].number,&a[i].score);
}
return 0;
}
*/
/*
#include <stdio.h>
typedef struct
{
char name[10];
int score;
}friend;
int main()
{
int n,i,j;
friend a[50],temp;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%s %d",a[i].name,&a[i].score);
}
for(i=1;i<=n;i++)
{
for(j=1;j<n;j++)
{
if(a[j].score<a[j+1].score)
{
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
printf("%s",a[3].name);
return 0;
}
*/
/*
#include <stdio.h>
int a[10001];
int n, i, j, temp;
int main() {
scanf("%d", &n);
for (i=1; i<=n; i++)
scanf("%d", &a[i]);
for(i=1; i<n; i++)
{
for(j=1;j<n;j++)
{
if (a[j] > a[j+1])
{
temp = a[j];
a[j] = a[j+1];
a[j+1] = temp;
}
}
}
for (i = 1; i <= n; i++)
printf("%d\n", a[i]);
return 0;
}
*/
#include <stdio.h>
int main()
{
int i,j,n,a[100]={},temp;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&a[i]);
}
for(i=1;i<=n;i++)
{
for(j=1;j<n;j++)
{
if(a[j]<a[j+1])
{
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
for(i=1;i<=n;i++)
{
printf("%d ",a[i]);
}
return 0;
}