"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = parseInt(arg[0].split(" ")[0]);
    const A = arg[1].split(" ").map(n=>parseInt(n));
    
    const list = [...Array(N)].fill(0);
    
    for(let i=0; i<N-1; i++) {
        let num = i + 2;
        
        list[A[i]-1]++;
    }
    
    console.log(list.join("\n"));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));