#include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <unordered_map>
#include <unordered_set>
#include <algorithm>
#include <cmath>
#include <numeric>

using namespace std;


int main() {
    int N;
    cin >> N;
    vector<int> res(N);
    for (int i = 0; i < N - 1; i++) {
        int a;
        cin >> a;
        res[a - 1]++;
    }

    for (int i = 0; i < N; i++) {
        cout << res[i] << endl;
    }

    return 0;
}
