#include <stdio.h>
int main(void){
    // Your code here!
    int x,a;
    scanf("%d\n", &x);
    int b[x];
    
    for (int i=0;i<x;i++) {
        b[i] = 0;
    }
    
    for(int i=0;i<x-1;i++){
        scanf("%d", &a);
        b[a-1]+=1;
    }
    
    for(int i=0;i<x-1;i++){
        printf("%d\n",b[i]);
    }
    
    printf("0");
        
    }
