#include <bits/stdc++.h>
using namespace std;

int h, w, n;
map<pair<int,int> ,int> mp;
set<pair<int,int> > s[10];

void add(int x,int y) {
	int lx = max(1, x - 2), ly = max(1, y - 2);
	int rx = min(x, h - 2), ry = min(y, w - 2);
	for (x = lx; x <= rx; ++x) {
		for (y = ly; y <= ry; ++y) {
			if (mp[{x, y}]) s[mp[{x, y}]].erase({x, y});
			mp[{x, y}]++;
			s[mp[{x, y}]].insert({x, y});
		}
	}
}

int main() {
	ios_base::sync_with_stdio(false);
	cin >> h >> w >> n;
	while (n--) {
		int x, y; cin >> x >> y;
		add(x, y);
	}
	long long sum = 1LL * (h - 2) * (w - 2);
	for (int i = 1; i <= 9; ++i) {
		sum -= (int)s[i].size();
	}
	cout << sum << '\n';
	for (int i = 1; i <= 9; ++i) cout << (int)s[i].size() << '\n';
}