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



c = dict()

for _ in range(n):

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

    for da in -1, 0, 1:

        for db in -1, 0, 1:

            if (2 <= a + da <= h - 1) and (2 <= b + db <= w - 1):

                c[(a + da, b + db)] = c.get((a + da, b + db), 0) + 1



#print(c)

ans_cnt = [0 for _ in range(10)]

for cnt in list(c.values()):

    ans_cnt[cnt] += 1



ans_cnt[0] = ((h - 1) - 2 + 1) * ((w - 1) - 2 + 1) - sum((1 for cnt in list(c.values()) if cnt > 0))



for i in range(10):

    print((ans_cnt[i]))
def main():

    from collections import defaultdict

    import sys

    input = sys.stdin.readline



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



    g = defaultdict(int)

    for _ in range(N):

        a, b = (int(x) - 1 for x in input().split())

        for i in range(3):

            if a - i < 0: continue

            if a - i + 3 > H: continue

            for j in range(3):

                if b - j < 0: continue

                if b - j + 3 > W: continue

                g[(a - i) * W + (b - j)] += 1

                # (a,b)を塗ったとき影響される3x3マス目の左上の座標に加算する



    ctr = [0] * 10

    tot = (H - 2) * (W - 2)

    for cnt in g.values():

        ctr[cnt] += 1

        tot -= 1

    ctr[0] = tot



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





if __name__ == '__main__':

    main()

h, w, n = list(map(int, input().split()))
c = dict()
for _ in range(n):
    a, b = list(map(int, input().split()))
    for da in -1, 0, 1:
        for db in -1, 0, 1:
            if (2 <= a + da <= h - 1) and (2 <= b + db <= w - 1):
                c[(a + da, b + db)] = c.get((a + da, b + db), 0) + 1
# print(c)
ans_cnt = [0 for _ in range(10)]
for cnt in list(c.values()):
    ans_cnt[cnt] += 1
ans_cnt[0] = ((h - 1) - 2 + 1) * ((w - 1) - 2 + 1) - sum(
    (1 for cnt in list(c.values()) if cnt > 0)
)
for i in range(10):
    print((ans_cnt[i]))

def main():
    from collections import defaultdict
    import sys

    input = sys.stdin.readline
    H, W, N = map(int, input().split())
    g = defaultdict(int)
    for _ in range(N):
        a, b = (int(x) - 1 for x in input().split())
        for i in range(3):
            if a - i < 0:
                continue
            if a - i + 3 > H:
                continue
            for j in range(3):
                if b - j < 0:
                    continue
                if b - j + 3 > W:
                    continue
                g[(a - i) * W + (b - j)] += 1
                # (a,b)を塗ったとき影響される3x3マス目の左上の座標に加算する
    ctr = [0] * 10
    tot = (H - 2) * (W - 2)
    for cnt in g.values():
        ctr[cnt] += 1
        tot -= 1
    ctr[0] = tot
    print(*ctr, sep="\n")


if __name__ == "__main__":
    main()

-h, w, n = list(map(int, input().split())) -c = dict() -for _ in range(n): -    a, b = list(map(int, input().split())) -    for da in -1, 0, 1: -        for db in -1, 0, 1: -            if (2 <= a + da <= h - 1) and (2 <= b + db <= w - 1): -                c[(a + da, b + db)] = c.get((a + da, b + db), 0) + 1 -# print(c) -ans_cnt = [0 for _ in range(10)] -for cnt in list(c.values()): -    ans_cnt[cnt] += 1 -ans_cnt[0] = ((h - 1) - 2 + 1) * ((w - 1) - 2 + 1) - sum( -    (1 for cnt in list(c.values()) if cnt > 0) -) -for i in range(10): -    print((ans_cnt[i])) +def main(): +    from collections import defaultdict +    import sys + +    input = sys.stdin.readline +    H, W, N = map(int, input().split()) +    g = defaultdict(int) +    for _ in range(N): +        a, b = (int(x) - 1 for x in input().split()) +        for i in range(3): +            if a - i < 0: +                continue +            if a - i + 3 > H: +                continue +            for j in range(3): +                if b - j < 0: +                    continue +                if b - j + 3 > W: +                    continue +                g[(a - i) * W + (b - j)] += 1 +                # (a,b)を塗ったとき影響される3x3マス目の左上の座標に加算する +    ctr = [0] * 10 +    tot = (H - 2) * (W - 2) +    for cnt in g.values(): +        ctr[cnt] += 1 +        tot -= 1 +    ctr[0] = tot +    print(*ctr, sep="\n") + + +if __name__ == "__main__": +    main()