const input = require("fs").readFileSync("/dev/stdin", "utf8")

;(input => {
 
    const lines = input.split('\n')
    const N = lines[0] - 0
    const A = lines[1].split(' ').map(Number)

    let c = Array(N).fill(0)

    for (let i = 0; i < A.length; i++) {
        c[A[i] - 1]++
    }

    console.log(c.join("\n"))

})(input)
