from collections import defaultdict, Counter

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

D = defaultdict(int)



for i in range(N):

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

    for y in range(3):

        for x in range(3):

            if 0 < a - y <= H - 2 and 0 < b - x <= W - 2:

                D[(a - y, b - x)] += 1



C = Counter(list(D.values()))

SUM = sum(C.values())



print(((H - 2) * (W - 2) - SUM))

for i in range(1, 10):

    print((C[i]))

from collections import defaultdict

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





D = defaultdict(int)

for i in range(N):

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

    h, w = h - 1, w - 1

    for dh in range(-1, 2):

        for dw in range(-1, 2):

            if not ((1 <= h + dh < H - 1) and (1 <= w + dw < W - 1)):

                continue

            D[(h + dh, w + dw)] += 1



ans = [0] * 10

for v in D.values():

    ans[v] += 1



ans[0] = (H - 2) * (W - 2) - sum(ans[1:])

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

from collections import defaultdict, Counter

H, W, N = list(map(int, input().split()))
D = defaultdict(int)
for i in range(N):
    a, b = list(map(int, input().split()))
    for y in range(3):
        for x in range(3):
            if 0 < a - y <= H - 2 and 0 < b - x <= W - 2:
                D[(a - y, b - x)] += 1
C = Counter(list(D.values()))
SUM = sum(C.values())
print(((H - 2) * (W - 2) - SUM))
for i in range(1, 10):
    print((C[i]))

from collections import defaultdict

H, W, N = map(int, input().split())
D = defaultdict(int)
for i in range(N):
    h, w = map(int, input().split())
    h, w = h - 1, w - 1
    for dh in range(-1, 2):
        for dw in range(-1, 2):
            if not ((1 <= h + dh < H - 1) and (1 <= w + dw < W - 1)):
                continue
            D[(h + dh, w + dw)] += 1
ans = [0] * 10
for v in D.values():
    ans[v] += 1
ans[0] = (H - 2) * (W - 2) - sum(ans[1:])
print(*ans, sep="\n")

-from collections import defaultdict, Counter +from collections import defaultdict -H, W, N = list(map(int, input().split())) +H, W, N = map(int, input().split()) -    a, b = list(map(int, input().split())) -    for y in range(3): -        for x in range(3): -            if 0 < a - y <= H - 2 and 0 < b - x <= W - 2: -                D[(a - y, b - x)] += 1 -C = Counter(list(D.values())) -SUM = sum(C.values()) -print(((H - 2) * (W - 2) - SUM)) -for i in range(1, 10): -    print((C[i])) +    h, w = map(int, input().split()) +    h, w = h - 1, w - 1 +    for dh in range(-1, 2): +        for dw in range(-1, 2): +            if not ((1 <= h + dh < H - 1) and (1 <= w + dw < W - 1)): +                continue +            D[(h + dh, w + dw)] += 1 +ans = [0] * 10 +for v in D.values(): +    ans[v] += 1 +ans[0] = (H - 2) * (W - 2) - sum(ans[1:]) +print(*ans, sep="\n")