#include <iostream>
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
using namespace std;
typedef long long ll;
const int MODU = 1e9+7;
const int N = 1e5+10;


void solve() {
	
}

int main() {
	int n;
	cin >> n;
	vector<int> subord(n+1);
	int temp;
	for(int i=2; i<=n; i++) {
		cin >> temp;
		subord[temp]++;
	}
	for(int i=1; i<=n; i++) {
		cout << subord[i] << endl;
	}
	return 0;
}