#include <stdio.h>
 
int main(void){
  int n, i, j;
  scanf("%d", &n);

  int a[200000];
  a[0] = 0;
  a[1] = 0;

  for(i=2; i<=n; i++){
    scanf("%d", &a[i]);
  }

int count[200000] = {0};
  for(i=2; i<=n; i++){
    for(j=1; j<=n; j++){
      if(a[i] == j)
      count[j]++;
    }
  }

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

  return 0;
}