#include <iostream>
#include<sstream>
#include<vector>
#include<iterator>
#include<map>
#include<utility>
using namespace std;

int main(void)
{
	int H, W, N;
	cin >> H >> W >> N;

	map<pair<int, int>, int> stage;
	for(int i=0; i<N; i++)
	{
		int a, b;
		cin >> a >> b;

		for(int j=0; j<3; j++)
		{
			for(int k=0; k<3; k++)
			{
				int y = a - j;
				int x = b - k;
				if(x<1 || x>W-2 || y<1 || y>H-2)
					continue;

				stage[make_pair(x, y)]++;
			}
		}
	}

	long long sum = 0;
	vector<long long> cnt(10, 0);
	for(auto it=stage.begin(); it!=stage.end(); it++)
	{
		cnt[it->second]++;
		sum++;
	}
	cnt[0] = (long long)(H-2)*(W-2) - sum;
	
	for(int i=0; i<10; i++)
		cout << cnt[i] << endl;


	return 0;
}
