#include <stdio.h>
#include <math.h>

int main(){

  int N = 0;
  scanf("%d",&N);

  int i = 0;
  int A[N];
  for( i = 1; i < N; i++ ){
    scanf("%d",&A[i]);
  }

  int j = 0;
  int count = 0;
  for( i = 0; i < N-1; i++ ){
    for( j = i+1; j < N; j++ ){
      if( i+1 == A[j] ){
        count++;
      }
    }
    printf("%d \n",count);
    count = 0;
  }
  printf("0 \n");

  return 0;
}