"use strict";

const main = arg => {
    const input = arg.trim().split("\n");
    const n = Number(input[0])
    const as = input[1].split(" ").map(el => parseInt(el))
    let arr = new Array(n).fill(0)
    for(let a of as){
        arr[a-1] = arr[a-1] + 1
    }
    for(let el of arr){
        console.log(el)
    }

}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));  

