#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
#define int long long
typedef long long ll;
using namespace std;

int H, W, N;
int a, b;
map<pair<int, int>, int> board;
ll ans[10];

signed main()
{
	cin >> H >> W >> N;
	rep(i,N) {
		cin >> a >> b;		//上からa行目、左からb列目
		for (int aa=a-1; aa<=a+1; aa++) {
			for (int bb=b-1; bb<=b+1; bb++) {
				if (2 <= aa && aa <= H - 1 && 2 <= bb && bb <= W - 1) {
					board[make_pair(aa, bb)]++;
				}
			}
		}
	}

	map<pair<int, int>, int>::iterator it = board.begin();
	while (it != board.end()) {
		ans[it->second]++;
		++it;
	}

	ans[0] = ll((H - 2) * (W - 2)) - board.size();
	rep(i,10) cout << ans[i] << endl;
}
