
import java.util.*;
class  Main{
      public static void main(String[] args) {
          Scanner scan = new Scanner(System.in);
         
          int N= scan.nextInt();
          int arr[] =  new int[N];
          for(int i=1;i<N;i++)
               arr[i]= scan.nextInt();

          int count=1;
          int prevval=0;
          int val = arr[1];
          int num=0;
          for(int i=1;i<N-1;i++){
              
              if(prevval<val&&val==arr[i+1]){
                  count++;
                  
              }
              else{
                  val = arr[i+1];
                  if(prevval>val){
                      System.out.println(0);

                  }
                  else{
                    System.out.println(count);
                  }
                 
                  count=1;
                  prevval=arr[i];
                  num++;
              }

          } 
          if(prevval>val){
            count=0;
        }
          while(num!=N){
              num++;
             
            System.out.println(count);
            
            count=0;
            
          }     
          
   }
}