#include<stdio.h>
#define Z 2000000
int a[Z],b[Z],c[Z];
main()
 {
  int i,j,k,l=0;
  scanf("%d", &k);
  for(i=0;i<k;i++)
    {
      scanf("%d", &a[i]);
      c[a[i]]+=1;  
      if(a[i] > l)
        {
	  l = a[i];
        }
    }  
  for(i=1;i<=l;i++)
    {
      c[i] = c[i] + c[i-1];
    }

  for(j = k-1;j>=0;j--)
    {