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

int main(){

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

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

  int hako = 0;
  for( i = 0; i < N-1; i++ ){
    hako = A[i];
    count[hako-1]++;
  }

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

  return 0;
}