import java.util.Scanner


object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n = sc.nextInt()

    val m = new Array[Int](n)

    for (i <- 0 until n - 1) {
      val a = sc.nextInt()
      m(a - 1) += 1
    }

    m(n - 1) = 0


    for (i <- 0 until n) {
      println(m(i))
    }
  }
}