import java.util.*
import java.io.PrintWriter

class Point(x: Int, y: Int) : Comparable<Point> {
    val x = x
    val y = y
    
    override operator fun compareTo(other : Point) : Int {
        if (x > other.x) {
            return 1
        } else if (x < other.x) {
            return -1
        } else {
            if (y > other.y) {
                return 1
            } else if (y < other.y) {
                return -1
            } else {
                return 0
            }
        }
    }

    override fun equals(other : Any?) : Boolean {
        if (javaClass != other?.javaClass) {
            return false
        }
        other as Point
        if (x == other.x && y == other.y) {
            return true
        }
        return false
    }
}

fun main(args: Array<String>){
	val cin = Scanner(System.`in`)
    val cout = PrintWriter(System.`out`)
    val h = cin.nextInt()
    val w = cin.nextInt()
    val n = cin.nextInt()

    val m : MutableList<Point> = mutableListOf()

    for (i in 0..n-1) {
        val a = cin.nextInt() - 1
        val b = cin.nextInt() - 1
        for (j in 0..2) {
            for (k in 0..2) {
                if (a - j >= 0 && a - j + 2 <= h - 1 && b - k >= 0 && b - k + 2 <= w - 1) {
                    m.add(Point(a - j, b - k))
                }
            }
        }
    }
    
    val ans = Array<Long>(10, { 0 })
    if (m.size > 0) {
        val ms = m.sorted()
        var pre = ms[0]
        var now = 1
        
        for (i in 1..ms.size - 1) {
            if (pre == ms[i]) {
                now += 1
            } else {
                ans[now] += 1.toLong()
                now = 1
                pre = ms[i]
            }
        }
        ans[now] += 1.toLong()
    }

    ans[0] = (h - 2).toLong() * (w - 2).toLong()
    for (i in 1..9) {
        ans[0] -= ans[i]
    }
    for (i in 0..9) {
        cout.println(ans[i])
    }
    cout.flush()
}

inline fun <reified T, reified E> segTree(m: Int, noinline f: (T, T)->T, noinline g: (T, E)->T, noinline h:(E, E)->E, ti: T, ei: E, ini: Array<T>): SegTree<T, E> {
    val n = cover(m)
    val ini_tree = Array<T>(2*n - 1, { i ->
        if (i < m) {
            ini[i]
        } else {
            ti
        }
    })
    val lazy = Array<E>(2*n - 1, { ei })
    return SegTree(n, f, g, h, ti, ei, ini_tree, lazy)
}

fun cover(m: Int): Int {
    var n = 1
    while (n < m) {
        n *= 2
    }
    return n
}

fun cover_d(m: Int): Int {
    var d = 0
    var n = 1
    while (n < m) {
        n *= 2
        d += 1
    }
    return d
}

class SegTree<T, E> (n: Int, f: (T, T)->T, g: (T, E)->T, h: (E, E)->E, ti: T, ei: E, node: Array<T>, lazy: Array<E>) {
    val n = n
    val f = f
    val g = g
    val h = h
    val ti = ti
    val ei = ei
    val node = node
    val lazy = lazy
    val size = node.size
    val height = cover_d(n)

    fun trans(i: Int): Int {
        return i + n - 1
    }

    fun left(i: Int): Int {
        return 2*i + 1
    }

    fun right(i: Int): Int {
        return 2*i + 2
    }

    fun parent(i: Int): Int {
        if (i == 0) {
            return -1
        }
        return (i - 1)/2
    }

    fun ancestor(i: Int, d: Int): Int {
        return ((i + 1) shr d) - 1
    }

    fun isRight(i: Int): Boolean {
        return ((i and 1) == 0)
    }

    fun isLeaf(i: Int): Boolean {
        return (left(i) > size)
    }

    fun reflect(k: Int): T {
        if (k >= size) {
            return ti
        }
        if (lazy[k] == ei) {
            return node[k]
        }
        return g(node[k], lazy[k])
    }

    fun eval(k: Int) {
        if (lazy[k] == ei) {
            return
        }
        if (left(k) < size) {
            lazy[left(k)] = h(lazy[left(k)], lazy[k])
            lazy[right(k)] = h(lazy[right(k)], lazy[k])
        }
        node[k] = reflect(k)
        lazy[k] = ei
    }

    fun thrust(k: Int) {
        // if (k > 0) {
        //     thrust(parent(k))
        // }
        for (i in 0..height) {
            eval(ancestor(k, height - i))
        }
        // eval(k)
    }

    fun recalc(k: Int) {
        var i = parent(k)
        while (i >= 0) {
            node[i] = f(reflect(left(i)), reflect(right(i)))
            i = parent(i)
        }
    }

    fun update(a: Int, b: Int, x: E) {
        val l0 = trans(a)
        val r0 = trans(b)
        thrust(l0)
        thrust(r0 - 1)

        var l = l0
        var r = r0
        while (l < r) {
            if (isRight(l)) {
                lazy[l] = h(lazy[l], x)
                l += 1
            }
            if (isRight(r)) {
                r -= 1
                lazy[r] = h(lazy[r], x)
            }
            l = l shr 1
            r = r shr 1
        }
        recalc(l0)
        recalc(r0 - 1)
    }

    fun set_val(a: Int, x: T) {
        val ta = trans(a)
        thrust(ta)
        node[ta] = x
        lazy[ta] = ei
        recalc(ta)
    }

    fun query(a: Int, b: Int): T {
        var l = trans(a)
        var r = trans(b)
        thrust(l)
        thrust(r - 1)

        var vl = ti
        var vr = ti

        while (l < r) {
            if (isRight(l)) {
                vl = f(vl, reflect(l))
                l += 1
            }
            if (isRight(r)) {
                r -= 1
                vr = f(reflect(r), vr)
            }
        }
        
        return f(vl, vr)
    }
}

Measured memory_bytes: 148716