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