#include <cstdio>
#include <algorithm>
using namespace std;

int n,a[200005];

inline int read(){
	int s=0,t=1;
	char c=getchar();
	while((c<'0'||c>'9')&&c!='-')c=getchar(),t=-1;
	if(c=='-')c=getchar(),t=-1;
	while(c>='0'&&c<='9')s=(s<<1)+(s<<3)+(c^48),c=getchar();
	return s*t;
}

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