#include <bits/stdc++.h>//復習必須
#include<iostream>
#include<vector>
#include <cmath>
#include <map>
#include <algorithm>
#include <string>
#define rep(i, n) for (int i = 0; i < n; ++i)
using ll = long long;
using namespace std;
#define P pair<int, int>
int main () {
    ll N ;
    cin >> N ;

    map<ll , ll> hyou ;
    for(ll j = 0 ; j < N  ; j++ ){
        hyou[j] = 0 ;
    }
    ll a[N-1] ;
    for(ll i = 0 ; i < N -1 ; i++){
        cin >> a[i] ;
        if(a[i] != 0){
            hyou[a[i]-1]++ ;
        }
    }
    
    for(ll j = 0 ; j < N ; j++){
        cout << hyou[j] << endl;
    }
    

    

    return 0 ;
}

 
