#include <iostream>
using namespace std;

int N, A[200001];

int main() {
    cin >> N;
    int j;
    for (int i = 1; i < N; i++) {
        cin >> j;
        A[j]++;
    }
    for (int i = 1; i <= N; i++) {
        cout << A[i] << "\n";
    }
    return 0;
}
