#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<stack>
#include<queue>
using namespace std;

#define read(x) scanf("%d",&x)
#define readl(x) scanf("%lld",&x)
#define ll long long 
#define ull unsigned long long

int n,l;
int b[10005]={0};

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