#include <stdio.h>

int main() {
  long n, a;
  long cnt[200001] = {0};

  scanf("%ld", &n);
  for (int i = 1; i < n; i++) {
    scanf("%ld", &a);
    cnt[a] = cnt[a] + 1;
  }

  for (int i = 1; i <= n; i++) {
    printf("%ld\n", cnt[i]);
  }

  return 0;
}