#include <stdio.h>
#include <string.h>
 
int main (void)
{
   int n;
 
   scanf("%6d",&n);
   int a[n+1];
   int b[n+1];
   memset(b, 0, sizeof(b));
   
   for(int i = 2; i <= n; i++) {
     scanf("%d",&a[i]);
     b[a[i]]++;
   }

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