function main(input) {
  const inputs = input.split('\n')
  const [N] = inputs[0].split(' ').map(Number)
  const Ai = inputs[1].split(' ').map(Number)
  
  let en = Array.from(new Array(N)).map(e => 0)
  for(let i = 0; i < N - 1; i ++) {
    const id = Ai[i] - 1
    if (!en[id]) {
      en[id] = 0
    }
    en[id] += 1
  }
  console.log(en.join('\n'))
}
main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
