#include <iostream>
using namespace std;

int n, a, cnt[200005];

int main() {
    cin >> n;
    for (int i = 2; i <= n; i++){
        cin >> a;
        cnt[a]++;
    }
    for (int i = 1; i <= n; i++){
        cout << cnt[i] << "\n";
    }
}
