#include <stack>
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <cmath>
#include <array>
#include <iomanip>
using namespace std;
int gcd(int a, int b)
{
   if (a%b == 0)
   {
       return(b);
   }
   else
   {
       return(gcd(b, a%b));
   }
}
int main(){
    //std::stack<int> stack;
    
    int n;
    cin >> n;
    vector <int> a(n);

    for(int i = 1; i < n; i++){
        cin >> a[i];
    }
    vector <int> ans(n);

    for(int i = 1; i < n; i++){
        ans[a[i]-1] ++;
    }
    for(int i = 0; i < n; i++){
        cout << ans[i] << endl;
    }
    //cout << ans << endl;
    return 0;
}



