#include <bits/stdc++.h>
#define endl '\n'
using namespace std;

int N, A[200001], tmp;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cin >> N;
    int *res = new int[N];
    for (int i = 1; i < N; i++) cin >> tmp, A[i] = tmp, res[tmp - 1]++;
    for (int i = 0; i < N; i++) cout << res[i] << " ";

    return 0;
}