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

from collections import defaultdict

m3x3 =defaultdict(list)

for _ in range(n):

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

    for i in range(max(0, a - 3),min(h - 2, a)):

        for j in range(max(0, b - 3),min(w - 2, b)):

            if (i,j) in  m3x3:

                m3x3[(i,j)] +=1

            else:

                m3x3[(i,j)] =1

v = list(m3x3.values())

k = list(m3x3.keys())

print(((w-2)*(h-2)-len(k)))

for j in range(1,10):

    print((v.count(j)))

from collections import defaultdict

import sys

h, w, n = list(map(int,sys.stdin.readline().rstrip().split()))



m3x3 =defaultdict(list)

for _ in range(n):

    a, b = list(map(int,sys.stdin.readline().rstrip().split()))

    for i in range(max(0, a - 3),min(h - 2, a)):

        for j in range(max(0, b - 3),min(w - 2, b)):

            if (i,j) in  m3x3:

                m3x3[(i,j)] +=1

            else:

                m3x3[(i,j)] =1

v = list(m3x3.values())

k = list(m3x3.keys())

print(((w-2)*(h-2)-len(k)))

for j in range(1,10):

    print((v.count(j)))

h, w, n = list(map(int, input().split()))
from collections import defaultdict

m3x3 = defaultdict(list)
for _ in range(n):
    a, b = list(map(int, input().split()))
    for i in range(max(0, a - 3), min(h - 2, a)):
        for j in range(max(0, b - 3), min(w - 2, b)):
            if (i, j) in m3x3:
                m3x3[(i, j)] += 1
            else:
                m3x3[(i, j)] = 1
v = list(m3x3.values())
k = list(m3x3.keys())
print(((w - 2) * (h - 2) - len(k)))
for j in range(1, 10):
    print((v.count(j)))

from collections import defaultdict
import sys

h, w, n = list(map(int, sys.stdin.readline().rstrip().split()))
m3x3 = defaultdict(list)
for _ in range(n):
    a, b = list(map(int, sys.stdin.readline().rstrip().split()))
    for i in range(max(0, a - 3), min(h - 2, a)):
        for j in range(max(0, b - 3), min(w - 2, b)):
            if (i, j) in m3x3:
                m3x3[(i, j)] += 1
            else:
                m3x3[(i, j)] = 1
v = list(m3x3.values())
k = list(m3x3.keys())
print(((w - 2) * (h - 2) - len(k)))
for j in range(1, 10):
    print((v.count(j)))

-h, w, n = list(map(int, input().split())) +import sys +h, w, n = list(map(int, sys.stdin.readline().rstrip().split())) -    a, b = list(map(int, input().split())) +    a, b = list(map(int, sys.stdin.readline().rstrip().split()))