#include<stdio.h>
 
int main(void){
  int n;
  scanf("%d",&n);
  
  int a,b;
  int staff[n];
  int i;
  
  i = 0;
  while(i<n){
    staff[i] = 0;
    i++;
  }
  
  i = 0;
  while(i<n-1){
    scanf("%d",&a);
    b = a-1;
    staff[b] += 1;
    i++;
  }
  
  i = 0;
  while(i<n){
    printf("%d\n",staff[i]);
    i++;
  }
  return 0;
}