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

#define int long long int

void fileioe(){
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout); 
	freopen("error.txt","w",stderr);
}
#define GO ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);

#ifndef ONLINE_JUDGE
#define fioe() fileioe()
#else
#define fioe() 1
#endif
//!

int32_t main()
{
	GO
	//fioe();
	int n;
	cin>>n;
	int arr[n+2];
	map<int,int> m;
	for(int i=0;i<n-1;i++){
		cin>>arr[i];
		m[arr[i]]++;
	}	
	int ans[n+3];
	memset(ans,0,sizeof(ans));
	for(auto x:m){
		ans[x.first] = x.second;
	}
	for(int i=1;i<=n;i++)
		cout<<ans[i]<<endl;
	return 0;
}