#include<bits/stdc++.h>
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define pb push_back
#define mp make_pair
#define fir first 
#define sec second
#define int long long
#define endl "\n"
using namespace std;
const int nax=1e5+5;
vector<int>adj[nax];
const int mod=1e9+7;
const int inf=1e18+7;
int cnt[nax];
signed main(){
	int n;
	cin>>n;
	for(int i=2;i<=n; i++){#include<bits/stdc++.h>
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define pb push_back
#define mp make_pair
#define fir first 
#define sec second
#define int long long
#define endl "\n"
using namespace std;
const int nax=2e5+5;
vector<int>adj[nax];
const int mod=1e9+7;
const int inf=1e18+7;
int cnt[nax];
signed main(){
	int n;
	cin>>n;
	for(int i=2;i<=n; i++){
		int a;
		cin>>a;
		cnt[a]++;
	}
	for(int i=1; i<=n; i++){
		cout<<cnt[i]<<endl;
	}
	return 0;
}


		int a;
		cin>>a;
		cnt[a]++;
	}
	for(int i=1; i<=n; i++){
		cout<<cnt[i]<<endl;
	}
	return 0;
}

