const Main = (input) => {
  const tmp = input.trim().split('\n')
  const employees = parseInt(tmp[0])
  const subordinateArray = tmp[1].split(' ').map((n) => parseInt(n))
  const resultArray = []

  for (let i = 0; i < employees; i++) {
    resultArray.push(0)
  }

  for (let j = 0; j < subordinateArray.length; j++) {
    resultArray[subordinateArray[j] - 1] += 1
  }
  result = resultArray.join('\n')

  console.log(result)
  return result
}

Main(require('fs').readFileSync('/dev/stdin', 'utf8'))
