from collections import Counter



h,w,n=map(int,input().split())

cc=Counter()

for _ in range(n):

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

    for i in range(3):

        for j in range(3):

            x=a+i

            y=b-j #brute forcing valid bottom right corners

            if x>=1 and x<=w and y>=1 and y<=h:

                if x-2>=1 and x-2<=w and y+2>=1 and y+2<=h:

                    cc[(x,y)]+=1

#                    print(x,y,end=' xy\n')#a valid 3*3 grid bottom right

ans=[0]*10

for i in cc.keys():

    ans[cc[(i)]]+=1

ans[0]=(h-2)*(w-2)-sum(ans)

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

from collections import Counter

import sys

input=sys.stdin.buffer.readline

h,w,n=map(int,input().split())

cc=Counter()

for _ in range(n):

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

    for i in range(3):

        for j in range(3):

            x=a+i

            y=b-j #brute forcing valid bottom right corners

            if x>=1 and x<=w and y>=1 and y<=h:

                if x-2>=1 and x-2<=w and y+2>=1 and y+2<=h:

                    cc[(x,y)]+=1

#                    print(x,y,end=' xy\n')#a valid 3*3 grid bottom right

ans=[0]*10

for i in cc.keys():

    ans[cc[(i)]]+=1

ans[0]=(h-2)*(w-2)-sum(ans)

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

from collections import Counter

h, w, n = map(int, input().split())
cc = Counter()
for _ in range(n):
    b, a = map(int, input().split())
    for i in range(3):
        for j in range(3):
            x = a + i
            y = b - j  # brute forcing valid bottom right corners
            if x >= 1 and x <= w and y >= 1 and y <= h:
                if x - 2 >= 1 and x - 2 <= w and y + 2 >= 1 and y + 2 <= h:
                    cc[(x, y)] += 1
#                    print(x,y,end=' xy\n')#a valid 3*3 grid bottom right
ans = [0] * 10
for i in cc.keys():
    ans[cc[(i)]] += 1
ans[0] = (h - 2) * (w - 2) - sum(ans)
print(*ans, sep="\n")

from collections import Counter
import sys

input = sys.stdin.buffer.readline
h, w, n = map(int, input().split())
cc = Counter()
for _ in range(n):
    b, a = map(int, input().split())
    for i in range(3):
        for j in range(3):
            x = a + i
            y = b - j  # brute forcing valid bottom right corners
            if x >= 1 and x <= w and y >= 1 and y <= h:
                if x - 2 >= 1 and x - 2 <= w and y + 2 >= 1 and y + 2 <= h:
                    cc[(x, y)] += 1
#                    print(x,y,end=' xy\n')#a valid 3*3 grid bottom right
ans = [0] * 10
for i in cc.keys():
    ans[cc[(i)]] += 1
ans[0] = (h - 2) * (w - 2) - sum(ans)
print(*ans, sep="\n")

+import sys +input = sys.stdin.buffer.readline