#include <stdio.h>
 
int main() {
  long n, a;
  long x[200001] = {0};
 
  scanf("%ld", &n);
  for (int i = 1; i < n; i++) {
    scanf("%ld", &a);
    x[a] = x[a] + 1;
  }
 
  for (int i = 1; i <= n; i++) {
    printf("%ld\n", x[i]);
  }
 
  return 0;
}