#include <iostream>
#include <vector>
#include <map>
using namespace std;
int main(void){
    // Your code here!
    int N;
    cin >> N;
    map<int, int> ans;
    
    for(int i = 0; i < N; i++){
        ans[i] = 0;
    }

    for(int i = 0; i < N-1; i++){
        int A;
        cin >> A;
        A--;
        ans[A]++;
    }
    
    for(auto A : ans){
        auto value = A.second;
        cout << value << endl;
    }
    
    
    
}
