#include<iostream>
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;

#define F first
#define S second
#define PB push_back
#define MP make_pair

#define REP(i,a,b) for (int i = a; i <= b; i++)
#define FOR(i,n) for (int i=0;i < n ; i++)

int main(){
	int n;
	cin >> n;
	int a[n];
	std::vector<int> sol(n) ;
	for (int i = 1; i < n; ++i)
	{
		cin >> a[i];
		sol[a[i]-1]++;
	}
	for (int i = 0; i < n; ++i)
	{
		cout << sol[i] <<"\n";
	}

	return 0;
}