#include<stdio.h>

int main(){

         int n,a[100];

         scanf("%d",&n);

         for(int i=0;i<n;i++)

         scanf("%d",a[i]);

         for(int i=0;i<n;i++)

         {

         if(a[i]<0)a[i]=-a[i];

         else a[i]=a[i];

         }

         for(int i=n-1;i>0;i--){

                   for(int j=1;j<=i;j++)

                   if(a[j-1]<a[j]){

                            int t=a[j-1];

                            a[j-1]=a[j];

                            a[j]=t;

                   }

         }

         for(int i=0;i<n;i++)

         printf("%d",a[i]);

        

         return 0;

}