fun main(args: Array<String>) {
  val input1 = readLine()!!.toInt()
  val num = readLine()!!.split(" ").map(String::toInt)
  val map = HashMap<Int, Int?>()
  for (i in 0 until input1 - 1) {
    var workVal = map[num[i]]
    if (workVal == null) {
      map[num[i]] = 1
    } else {
      map[num[i]] = workVal + 1
    }
  }

  for (i in 1..input1) {
    val resVal = map[i]
    if (resVal == null) {
      println(0)
    } else {
      println(resVal)
    }
  }

}
