#include<stdio.h>

int main(void){
  int n,m,i;
  int a[200000] = {};
  scanf("%d", &n);
  for(i=0;i<n-1;i++){
    scanf("%d", &m);
    a[m-1] += 1;
  }
  for(i=0;i<n;i++)
    printf("%d\n", a[i]);
  return 0;
}