#include <stdio.h>

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

    return 0;
}