#include <stdio.h>
int main()
{
  int n,m,i;
  int boss[200000];
  
  scanf("%d", &n);
  
  i = 2;
  while(i <= n)
  {
    scanf("%d", &m);
    boss[m] += 1;
    i++;
  }
  
  i = 1;
  while(i <= n)
  {
    if(boss[i] != 0)
      printf("%d\n", boss[i]);
    else
      printf("0\n");
    i++;
  }
  
  return (0);
}