#include<stdio.h>
int main(void){
  char *s="python3 -c\""
"from collections import*\n"
"input=open(0).readline\n"
"h,w,n=map(int,input().split())\n"
"d=defaultdict(int)\n"
"for _ in range(n):\n"
"    a,b=map(int,input().split())\n"
"    for i in(0,-1,-2):\n"
"        for j in(0,-1,-2):\n"
"            d[(a+i,b+j)]+=1\n"
"a=[0]*10\n"
"for i in d.keys():\n"
"    if 0<i[0]<h-1and 0<i[1]<w-1:\n"
"        a[d[i]]+=1\n"
"a[0]=(h-2)*(w-2)-sum(a)\n"
"print(*a,sep='\n')\n"
"\"";
  system(s);
  return 0;
}            