#include<stdio.h>

int main(void){
   int a,i;
   scanf("%d",&a);
   int b[a],c[a+1];
   for(i=1;i<a;i++){
       scanf("%d",b[i]);
       c[b[i]]++;
   }
   for(i=1;i<=a;i++){
       printf("%d\n",c[i]);
   }
}