#include<bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define ll long long
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)

	 
int main()
{
	fastio;
	
	int n,a;
	cin>>n;
	int A[n+1]={0};
	for(int i=2;i<=n;i++)
	{
		cin>>a;
		A[a]++;
	}
	for(int i=1;i<=n;i++)
	cout<<A[i]<<"\n";
	
	
	return 0;
	
	
}