import java.io.{BufferedOutputStream, BufferedReader, InputStreamReader, PrintWriter}

object Main {
  def main(args: Array[String]): Unit = {
    val in = new BufferedReader(new InputStreamReader(System.in))
    val out = new PrintWriter(new BufferedOutputStream(System.out))
    val n = in.readLine().toInt

    val as = Array.ofDim[Int](n)
    for((a, i) <- in.readLine().split("\\s+").map(_.toInt - 1).zipWithIndex) {
      as(i + 1) = a
    }

    val subs = Array.ofDim[Int](n)

    for(i <- 1 until n) {
      subs(as(i)) += 1
    }

    for(sub <- subs) {
      out.println(sub)
    }

    out.flush()
  }
}
