#include<iostream>
#include<string>
#include<map>
#include<set>
#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;

int main(){
    int n;
    cin >> n;
    map<int,int>s;
    rep(i,n-1){
        int shainnum;
        cin >> shainnum;
        s[shainnum] +=1;
    }
    for(int i=1;i<n+1;i++){
        cout << s[i] << " ";
    }
    return 0;
}