#include<stdio.h>
#define rep(i,N) for(int i=0;i<(int)N;i++)
int main(void)
{
  int N,x,A[200001]={0};
  x=scanf("%d",&N);
  rep(i,N-1)while(scanf("%d",&x)>0)A[x-1]++;
  rep(i,N)printf("%d\n",A[i]);
}