#include <iostream>
#include <map>
#include <utility>

using namespace std;

int main(){


	long long H,W,N;
	cin>>H>>W>>N;

	std::map<pair<int, int>, long> m;

	long x,y;
	for(long i=0 ; i<N ; i++){
		cin>>x>>y;
		for(int x_offset = -1 ; x_offset<=1 ; x_offset++){
			for(int y_offset = -1 ; y_offset<=1 ; y_offset++){
				if(x+x_offset<2 || y+y_offset<2 || x+x_offset>H-1 || y+y_offset>W-1)continue;
				m[make_pair(x+x_offset, y+y_offset)]+=1;
	
			}		
		}
	}

	long count[10] = {0};
	count[0]=(H-2)*(W-2);

	for(auto elem:m){
		count[elem.second]++;
		count[0]--;
	}

	for(int i=0; i<10;i++){
		cout << count[i] << endl;
	}
}
