from collections import Counter

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

Bs = []

for i in range(N):

    x,y = list(map(int,input().split()))

    for xx in range(3):

        for yy in range(3):

            tx,ty = x-xx,y-yy

            if 1<=tx and tx<=H-2 and 1<=ty and ty<=W-2:

                Bs.append((tx,ty))

C = [0]*10

for (x,y),v in Counter(Bs).most_common():

    C[v] += 1

C[0] = (H-2)*(W-2)-sum(C)

for i in range(10):

    print((C[i]))

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

dic = {}

for i in range(N):

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

    for dh in range(3):

        for dw in range(3):

            if 0<a-dh<=H-2 and 0<b-dw<=W-2:

                if (a-dh,b-dw) not in list(dic.keys()):

                    dic[(a-dh,b-dw)] = 1

                else:

                    dic[(a-dh,b-dw)] += 1



Ans = [0]*10

total = 0

for v in list(dic.values()):

    Ans[v] += 1

    total += 1



Ans[0] = (H-2)*(W-2) - total



for ans in Ans:

    print(ans)



from collections import Counter

H, W, N = list(map(int, input().split()))
Bs = []
for i in range(N):
    x, y = list(map(int, input().split()))
    for xx in range(3):
        for yy in range(3):
            tx, ty = x - xx, y - yy
            if 1 <= tx and tx <= H - 2 and 1 <= ty and ty <= W - 2:
                Bs.append((tx, ty))
C = [0] * 10
for (x, y), v in Counter(Bs).most_common():
    C[v] += 1
C[0] = (H - 2) * (W - 2) - sum(C)
for i in range(10):
    print((C[i]))

H, W, N = list(map(int, input().split()))
dic = {}
for i in range(N):
    a, b = list(map(int, input().split()))
    for dh in range(3):
        for dw in range(3):
            if 0 < a - dh <= H - 2 and 0 < b - dw <= W - 2:
                if (a - dh, b - dw) not in list(dic.keys()):
                    dic[(a - dh, b - dw)] = 1
                else:
                    dic[(a - dh, b - dw)] += 1
Ans = [0] * 10
total = 0
for v in list(dic.values()):
    Ans[v] += 1
    total += 1
Ans[0] = (H - 2) * (W - 2) - total
for ans in Ans:
    print(ans)

-from collections import Counter - -Bs = [] +dic = {} -    x, y = list(map(int, input().split())) -    for xx in range(3): -        for yy in range(3): -            tx, ty = x - xx, y - yy -            if 1 <= tx and tx <= H - 2 and 1 <= ty and ty <= W - 2: -                Bs.append((tx, ty)) -C = [0] * 10 -for (x, y), v in Counter(Bs).most_common(): -    C[v] += 1 -C[0] = (H - 2) * (W - 2) - sum(C) -for i in range(10): -    print((C[i])) +    a, b = list(map(int, input().split())) +    for dh in range(3): +        for dw in range(3): +            if 0 < a - dh <= H - 2 and 0 < b - dw <= W - 2: +                if (a - dh, b - dw) not in list(dic.keys()): +                    dic[(a - dh, b - dw)] = 1 +                else: +                    dic[(a - dh, b - dw)] += 1 +Ans = [0] * 10 +total = 0 +for v in list(dic.values()): +    Ans[v] += 1 +    total += 1 +Ans[0] = (H - 2) * (W - 2) - total +for ans in Ans: +    print(ans)