#include <stdio.h>

int arr[200010];

int main(void) {
  int n;
  scanf("%d", &n);

  for (int i = 1; i < n; i++) {
    int tmp;
    scanf("%d", &tmp);
    arr[tmp - 1]++;
  }

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