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

int main()
{
    ll n;
    cin>>n;
    ll b[200001]={0},x;
    for (ll i=1;i<n;i++){
        cin>>x;
        b[x]++;
    }
    for (ll i=1;i<=n;i++){
        cout <<b[i]<<endl;
    }
    return 0;
}
