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

int main() {
    int N;
    cin >> N;
    vector<int> A(N+1, 0);
    for (int i = 0; i < N-1; i++) {
        int B;
        cin >> B;
        A[B]++;
    }
    for (int i = 1; i <= N; i++) cout << A[i] << endl;
    return 0;
}