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

void cnt_manager(){
    int n; cin >> n;
    int manager_no[n-1]={};
    for(int i=0;i<n-1;i++){
        cin >> manager_no[i];
    }
    int cnt=0;
    int i=0;
    for(int j=1;j<=n;j++){ //manager's number
        for(i=i;i<n-1;i++){
            if(manager_no[i]==j){
                cnt++;
            }
        }
        cout << cnt << endl;
      	i+=1;
        cnt=0;
    }
}

int main(){
    cnt_manager();
    return 0;
}
