import java.util.Scanner

import scala.collection.mutable.ArrayBuffer

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


    val store = ArrayBuffer.fill[Int](n)(0)

    a.foreach { an =>
      store(an - 1) += 1
    }

    store.foreach(println)

  }
}
