#include <bits/stdc++.h>
using namespace std;
#define ll long long 

int main() {
	ll i, j, k, l, test, n;
	cin >> n;
	map<ll, ll> m;
	for (i = 0; i < n-1; i++) {
		cin >> k;
		m[k]++;
	}
	for (i = 1; i <= n; i++) {
		//cout << "car";
		cout << m[i] << "\n";
	}
}