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



int main()
{	
	int n;
	cin>>n;
	int arr[n+1] = {};

	for(int i = 0;i<n-1;i++){
		int a;
		cin>>a;
		arr[a] +=1;
	}

	for(int i =1;i<n+1;i++){
		cout<<arr[i]<<endl;
	}
}