#include <stdio.h>

void print(long num,long a[]){
  long count1 = 0;
  long count2 = 0;
  for(int j=1;j<num;j++){
    count1 = 0;
    for(int i=count2;i<num-1;i++){
      count2++;
      if(a[i]==j){
        count1++;
      }else{
        printf("%ld",count1);
      }
    }
  }
  return ;
}

int main(void){
  long num;
  scanf("%ld",&num);
  long a[num-1];
  for(int i=0;i<num-1;i++){
    scanf("%ld",&a[i]);
  }
  print(num,a);
  return 0;
}
