#include <stdio.h>

int main()
{
   #ifndef ONLINE_JUDGE
   freopen("input.txt","r",stdin);
   freopen("output.txt","w",stdout);
   #endif

int n,i,j;

scanf("%d",&n);

int x[n-1],y[n];

for(i=0;i<n-1;i++)
{scanf("%d",&x[i]);
y[i]=0;}
y[i]=0;


for(i=0;i<n-1;i++)
     y[x[i]-1]++;

for(i=0;i<n;i++)
	printf("%d\n",y[i]);

}
 