#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i,n) for(ll i = 0; i<(ll)(n); i++)
#define REPS(i,n) for (ll i = 1; i<=(ll)(n); i++)
#define REPD(i,n) for(ll i=(ll)(n)-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=(a);i<=(b);i++)
#define FORD(i,a,b) for(ll i=(a);i>=(b);i--)
#define pb push_back
#define MOD 1000000007
#define MOD2 998244353

int main(){
	ll n;
	ll a;
	vector<ll> buka(220000);
	vector<ll> joshi(220000);
	cin >> n;
	FOR(i,2,n){
		cin >> a;
		joshi[i]++;
		buka[a]++;
	}
	FOR(i,1,n){
		cout << buka[i] << endl;
	}
}