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)



# python3 (3.4.3)

import sys

input = sys.stdin.readline



# main

from collections import defaultdict

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

AB = [list(map(int,input().split())) for _ in range(N)]



dic = defaultdict(int)

for a,b in AB:

    for dh in range(3):

        for dw in range(3):

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

                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)

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)

# python3 (3.4.3)
import sys

input = sys.stdin.readline
# main
from collections import defaultdict

H, W, N = list(map(int, input().split()))
AB = [list(map(int, input().split())) for _ in range(N)]
dic = defaultdict(int)
for a, b in AB:
    for dh in range(3):
        for dw in range(3):
            if 0 < a - dh <= H - 2 and 0 < b - dw <= W - 2:
                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)

+# python3 (3.4.3) +import sys + +input = sys.stdin.readline +# main +from collections import defaultdict + -dic = {} -for i in range(N): -    a, b = list(map(int, input().split())) +AB = [list(map(int, input().split())) for _ in range(N)] +dic = defaultdict(int) +for a, b in AB: -                if (a - dh, b - dw) not in list(dic.keys()): -                    dic[(a - dh, b - dw)] = 1 -                else: -                    dic[(a - dh, b - dw)] += 1 +                dic[(a - dh, b - dw)] += 1