#include <bits/stdc++.h>
using namespace std;
int main()
{
int a[100],n,i,j,tam;
cin>>n;
for (i=1; i<=n; i++);
cin>>a[i];
for (i=1; i<=n-1; i++)
for (j=i+1;j<=n;j++)
if (a[i]<a[j])
{
tam=a[i];
a[i]=a[j];
a[j]=tam;
}
for (i=1; i<=n; i++)
cout<<a[i]<<" ";
return 0;
}