#include <stdio.h>
#include <stdlib.h>

int ret[200000] = {0};

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