H, W, N = list(map(int, input().split()))



Dic = {}

for i in range(N):

    a, b = list(map(int, input().split()))

    for j in range(3):

        for k in range(3):

            if 1 <= a-j <= H-2 and 1 <= b-k <= W-2:

                if (a-j, b-k) in Dic:

                    Dic[(a-j, b-k)] += 1

                else:

                    Dic[(a-j, b-k)] = 1



Painted = [0 for _ in range(10)]

colered = 0

for i in Dic:

    Painted[Dic[i]] += 1

    colered += 1

Painted[0] = (H-2) * (W-2) - colered



for i in Painted:

    print(i)
import sys

from collections import defaultdict



def solve():

    input = sys.stdin.readline

    H, W, N = map(int, input().split())

    C = defaultdict(int)

    for _ in range(N):

        a, b = map(int, input().split())

        a -= 1

        b -= 1

        for h in range(3):

            for w in range(3):

                if 0 <= a-h < H - 2 and 0 <= b-w < W - 2:

                    C[(a-h, b-w)] += 1

    

    ans = [0] * 10

    s = 0

    for key in C:

        ans[C[key]] += 1

        s += 1

    ans[0] = ((H - 2) * (W - 2) - s)

    print(*ans, sep="\n") 

    #print(C)



    return 0



if __name__ == "__main__":

    solve()

H, W, N = list(map(int, input().split()))
Dic = {}
for i in range(N):
    a, b = list(map(int, input().split()))
    for j in range(3):
        for k in range(3):
            if 1 <= a - j <= H - 2 and 1 <= b - k <= W - 2:
                if (a - j, b - k) in Dic:
                    Dic[(a - j, b - k)] += 1
                else:
                    Dic[(a - j, b - k)] = 1
Painted = [0 for _ in range(10)]
colered = 0
for i in Dic:
    Painted[Dic[i]] += 1
    colered += 1
Painted[0] = (H - 2) * (W - 2) - colered
for i in Painted:
    print(i)

import sys
from collections import defaultdict


def solve():
    input = sys.stdin.readline
    H, W, N = map(int, input().split())
    C = defaultdict(int)
    for _ in range(N):
        a, b = map(int, input().split())
        a -= 1
        b -= 1
        for h in range(3):
            for w in range(3):
                if 0 <= a - h < H - 2 and 0 <= b - w < W - 2:
                    C[(a - h, b - w)] += 1
    ans = [0] * 10
    s = 0
    for key in C:
        ans[C[key]] += 1
        s += 1
    ans[0] = (H - 2) * (W - 2) - s
    print(*ans, sep="\n")
    # print(C)
    return 0


if __name__ == "__main__":
    solve()

-H, W, N = list(map(int, input().split())) -Dic = {} -for i in range(N): -    a, b = list(map(int, input().split())) -    for j in range(3): -        for k in range(3): -            if 1 <= a - j <= H - 2 and 1 <= b - k <= W - 2: -                if (a - j, b - k) in Dic: -                    Dic[(a - j, b - k)] += 1 -                else: -                    Dic[(a - j, b - k)] = 1 -Painted = [0 for _ in range(10)] -colered = 0 -for i in Dic: -    Painted[Dic[i]] += 1 -    colered += 1 -Painted[0] = (H - 2) * (W - 2) - colered -for i in Painted: -    print(i) +import sys +from collections import defaultdict + + +def solve(): +    input = sys.stdin.readline +    H, W, N = map(int, input().split()) +    C = defaultdict(int) +    for _ in range(N): +        a, b = map(int, input().split()) +        a -= 1 +        b -= 1 +        for h in range(3): +            for w in range(3): +                if 0 <= a - h < H - 2 and 0 <= b - w < W - 2: +                    C[(a - h, b - w)] += 1 +    ans = [0] * 10 +    s = 0 +    for key in C: +        ans[C[key]] += 1 +        s += 1 +    ans[0] = (H - 2) * (W - 2) - s +    print(*ans, sep="\n") +    # print(C) +    return 0 + + +if __name__ == "__main__": +    solve()