#include <stdio.h>

int cnt[200005];

int main() {
    int n; scanf("%d", &n);
    for (int i = 1; i < n; i++) {
        int tt; scanf("%d", &tt);
        cnt[tt]++;
    }
    for (int i = 1; i <= n; i++)
        printf("%d\n", cnt[i]);
}
