#include<stdio.h>
#include<stdlib.h>
int main(){
  int num, i, jyosi;
  int *n, *buka;

  n=(int *)malloc(sizeof(int)*(num-1));
  buka=(int *)malloc(sizeof(int)*(num-1));
  scanf("%d", &num);

  for(i=0;i<num-1;i++){
    scanf("%d", &jyosi);
    *n=jyosi;
    buka[jyosi-1]++;
    n++;
  }
  for(i=0;i<num-1;i++){
    printf("%d\n", buka[i]);
  }
  return 0;
}
