#include <iostream>
typedef long long ll; 
const ll mod = 1e9+7;
#define fo(i, n) for (int i = 0; i < n; i++)
#define sc(n) scanf("%d", &n) 
using namespace std;

int n;

void solve() {
    sc(n);
    int ans[200005] = {0};
    int x;
    fo(i, n-1) {
        sc(x);
        ans[x]++;       
    }
    fo(i, n) {
        printf("%d\n", ans[i+1]);
    }

}

int main() {
    int t = 1;
    //scanf("%d", &t);
    while (t--) {
        solve();
    }
    return 0;
}