#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#define ll long long

int gcd(int a, int b)
{
  return b ? gcd(b, a % b) : a;
}

int tgcd(int a, int b, int c)
{
  return gcd(gcd(a, b), c);
}

int main(void)
{
  int n, i, j, k;
  scanf("%d", &n);
  int *a, *b;
  int z;
  a = (int *)malloc(sizeof(int) * n);
  b = (int *)malloc(sizeof(int) * n);
  b[0] = 0;
  for (i = 0; i < n; i++)
  {
    a[i] = 0;
  }
  for (i = 1; i < n; i++)
  {
    scanf("%d", &z);
    b[i] = z;
  }
  for (i = n - 1; i > 0; i--)
  {
    z = b[i];
    a[z - 1]++;
  }

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

  return 0;
}