from collections import defaultdict



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

  

ans =[(H-2)*(W-2)]+[0]*9

blacks = defaultdict(int)

for i in range(N):

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

  for dx in [-1,0,1]:

    for dy in [-1,0,1]:

      if 2 <= a+dx <H and 2 <= b+dy <W:

        ans[blacks[(a+dx,b+dy)]]-=1

        ans[blacks[(a+dx,b+dy)]+1]+=1

      blacks[(a+dx,b+dy)]+=1

        

for i in range(10): print((ans[i]))

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

dic={}

dx=[-2,-1,0]

dy=[-2,-1,0]

ans=[0]*10

for _ in range(n):

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

  for x in dx:

    for y in dy:

      if 1<=a+y and a+y+2<=h and 1<=b+x and b+x+2<=w:

        if (a+y,b+x) not in dic:

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

        else:

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

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

for v in list(dic.values()):

  ans[v]+=1

for i in range(10):

  print((ans[i]))

from collections import defaultdict

H, W, N = list(map(int, input().split()))
ans = [(H - 2) * (W - 2)] + [0] * 9
blacks = defaultdict(int)
for i in range(N):
    a, b = list(map(int, input().split()))
    for dx in [-1, 0, 1]:
        for dy in [-1, 0, 1]:
            if 2 <= a + dx < H and 2 <= b + dy < W:
                ans[blacks[(a + dx, b + dy)]] -= 1
                ans[blacks[(a + dx, b + dy)] + 1] += 1
            blacks[(a + dx, b + dy)] += 1
for i in range(10):
    print((ans[i]))

h, w, n = list(map(int, input().split()))
dic = {}
dx = [-2, -1, 0]
dy = [-2, -1, 0]
ans = [0] * 10
for _ in range(n):
    a, b = list(map(int, input().split()))
    for x in dx:
        for y in dy:
            if 1 <= a + y and a + y + 2 <= h and 1 <= b + x and b + x + 2 <= w:
                if (a + y, b + x) not in dic:
                    dic[(a + y, b + x)] = 1
                else:
                    dic[(a + y, b + x)] += 1
ans[0] = (h - 2) * (w - 2) - len(dic)
for v in list(dic.values()):
    ans[v] += 1
for i in range(10):
    print((ans[i]))

-from collections import defaultdict - -H, W, N = list(map(int, input().split())) -ans = [(H - 2) * (W - 2)] + [0] * 9 -blacks = defaultdict(int) -for i in range(N): +h, w, n = list(map(int, input().split())) +dic = {} +dx = [-2, -1, 0] +dy = [-2, -1, 0] +ans = [0] * 10 +for _ in range(n): -    for dx in [-1, 0, 1]: -        for dy in [-1, 0, 1]: -            if 2 <= a + dx < H and 2 <= b + dy < W: -                ans[blacks[(a + dx, b + dy)]] -= 1 -                ans[blacks[(a + dx, b + dy)] + 1] += 1 -            blacks[(a + dx, b + dy)] += 1 +    for x in dx: +        for y in dy: +            if 1 <= a + y and a + y + 2 <= h and 1 <= b + x and b + x + 2 <= w: +                if (a + y, b + x) not in dic: +                    dic[(a + y, b + x)] = 1 +                else: +                    dic[(a + y, b + x)] += 1 +ans[0] = (h - 2) * (w - 2) - len(dic) +for v in list(dic.values()): +    ans[v] += 1