#include<iostream>
#include<vector>
#include<string>
#include<sstream>
#include<chrono>
#include<algorithm>
#include<functional>
#include<cstdlib>
#include<numeric>
#include<omp.h>
#include<queue>
#include<stack>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
constexpr double PI = 3.14159265358979323846;
int main()
{
	int N = 0;
	cin >> N;
	std::vector<int>ans(N, 0);
	int a = 0;
	for (int i = 0; i < N-1; i++)
	{
		cin >> a;
		ans[a - 1] += 1;

		
	}
	for (auto item : ans) {
		std::cout << item << std::endl;
	}
}