import java.io.{BufferedReader, IOException, InputStream, InputStreamReader}
import java.util.StringTokenizer

import scala.collection.mutable
import scala.util.Sorting
import math.{min, max, abs}

object Main {
  def solve(): Unit = {
    val sc = new InputReader(System.in)
    val H = sc.nextInt()
    val W = sc.nextInt()
    val N = sc.nextInt()
    val p = mutable.Map[(Int, Int), Int]().withDefault(_ => 0)

    (0 until N) foreach { _ =>
      val a = sc.nextInt() - 1
      val b = sc.nextInt() - 1
      for {
        i <- -2 to 0
        j <- -2 to 0
        a0 = a + i
        b0 = b + j
        if 0 <= a0 && a0 <= H - 3 && 0 <= b0 && b0 <= W - 3
      } {
        p((a0, b0)) = p((a0, b0)) + 1
      }
    }

    def max = (H - 2).toLong * (W - 2).toLong
    
    val d = Array.ofDim[Long](10)
    p foreach { case (_, j) => d(j) += 1 }
    d(0) = max - d.drop(1).sum
    d.indices map d foreach println
  }

  def main(args: Array[String]): Unit = {
    solve()
  }



  class InputReader(val stream: InputStream) {
    val reader = new BufferedReader(new InputStreamReader(stream), 32768)
    var tokenizer: StringTokenizer = null

    def next: String = {
      while (tokenizer == null || !tokenizer.hasMoreTokens)
        tokenizer = new StringTokenizer(reader.readLine)
      tokenizer.nextToken
    }

    def nextInt(): Int = next.toInt
    def nextLong(): Long = next.toLong
    def nextChar(): Char = next.charAt(0)
  }

}
