#include <iostream>
#include <cmath>
#include <algorithm>
#include <climits>
#include <vector>
#include <string>
#include <set>
#include <iomanip>
#include <map>
#define rep(i,n) for (int i=0;i<(n);++i)
#define REP(i,n) for (int i=0;i<=(n);++i)
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
const int INF = 10000000;

int gcd(int a,int b){return b?gcd(b,a%b):a;}

int main(){
    int n;
    cin >> n;
    vector<int> a(n);
    for(int s_num = 0; s_num < n - 1; ++s_num){
        int buka;
        cin >> buka;
        ++a[buka-1]; 
    }
    for(int i = 0; i < n; ++i){
        cout << a[i]<< endl;
    }
    return 0;
}
