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



A = {}

for i in range(N):

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

  a-=1;b-=1

  for t in range(3):

    for s in range(3):

      if 0<=a-t<H-2 and 0<=b-s<W-2:

        if (a-t,b-s) not in A:

          A[(a-t,b-s)]  = 1

        else:

          A[(a-t,b-s)]  += 1

#print(A)

ans = [-1]

temp = list(A.values())

total = 0

for i in range(1,10):

  c = temp.count(i)

  total += c

  ans.append(c)

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

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



  

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

B = set([])

for i in range(N):

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

  a-=1;b-=1

  B.add((a,b))

#print(B)

BB = list(B)

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

for i in range(N):

  cnt = 0; temp = 0

  x,y = BB[i]

  #print(x,y)

  for sx in range(max(0,x-2),min(x,H-3)+1):

    for sy in range(max(0,y-2),min(y,W-3)+1):

      temp = 0

      for p in range(3):

        for q in range(3):

          if (sx+p,sy+q) in B:

            temp += 1

      #print(sx,sy,temp)

      ans[temp] += 1

for i in range(1,10):

  ans[i] = ans[i]//i

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

for t in ans:

  print(t)

        
H, W, N = map(int, input().split())
A = {}
for i in range(N):
    a, b = map(int, input().split())
    a -= 1
    b -= 1
    for t in range(3):
        for s in range(3):
            if 0 <= a - t < H - 2 and 0 <= b - s < W - 2:
                if (a - t, b - s) not in A:
                    A[(a - t, b - s)] = 1
                else:
                    A[(a - t, b - s)] += 1
# print(A)
ans = [-1]
temp = list(A.values())
total = 0
for i in range(1, 10):
    c = temp.count(i)
    total += c
    ans.append(c)
ans[0] = (H - 2) * (W - 2) - total
print(*ans, sep="\n")

H, W, N = list(map(int, input().split()))
B = set([])
for i in range(N):
    a, b = list(map(int, input().split()))
    a -= 1
    b -= 1
    B.add((a, b))
# print(B)
BB = list(B)
ans = [0 for _ in range(10)]
for i in range(N):
    cnt = 0
    temp = 0
    x, y = BB[i]
    # print(x,y)
    for sx in range(max(0, x - 2), min(x, H - 3) + 1):
        for sy in range(max(0, y - 2), min(y, W - 3) + 1):
            temp = 0
            for p in range(3):
                for q in range(3):
                    if (sx + p, sy + q) in B:
                        temp += 1
            # print(sx,sy,temp)
            ans[temp] += 1
for i in range(1, 10):
    ans[i] = ans[i] // i
ans[0] = (H - 2) * (W - 2) - sum(ans[1:])
for t in ans:
    print(t)

-H, W, N = map(int, input().split()) -A = {} +H, W, N = list(map(int, input().split())) +B = set([]) -    a, b = map(int, input().split()) +    a, b = list(map(int, input().split())) -    for t in range(3): -        for s in range(3): -            if 0 <= a - t < H - 2 and 0 <= b - s < W - 2: -                if (a - t, b - s) not in A: -                    A[(a - t, b - s)] = 1 -                else: -                    A[(a - t, b - s)] += 1 -# print(A) -ans = [-1] -temp = list(A.values()) -total = 0 +    B.add((a, b)) +# print(B) +BB = list(B) +ans = [0 for _ in range(10)] +for i in range(N): +    cnt = 0 +    temp = 0 +    x, y = BB[i] +    # print(x,y) +    for sx in range(max(0, x - 2), min(x, H - 3) + 1): +        for sy in range(max(0, y - 2), min(y, W - 3) + 1): +            temp = 0 +            for p in range(3): +                for q in range(3): +                    if (sx + p, sy + q) in B: +                        temp += 1 +            # print(sx,sy,temp) +            ans[temp] += 1 -    c = temp.count(i) -    total += c -    ans.append(c) -ans[0] = (H - 2) * (W - 2) - total -print(*ans, sep="\n") +    ans[i] = ans[i] // i +ans[0] = (H - 2) * (W - 2) - sum(ans[1:]) +for t in ans: +    print(t)