#include<bits/stdc++.h>
using namespace std;
const int N=5e5+10;
int n,f[N];
int main()
{
	scanf("%d",&n);
	for (int i=2,x;i<=n;i++) scanf("%d",&x), f[x]++;
	for (int i=1;i<=n;i++) printf("%d\n",f[i]);
}