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

int main()
{
    int h, w, n;
    cin >> h >> w >> n;

    map<pair<int, int>, int> mp;
    for (int i = 0; i < n; i++) {
        int y, x;
        cin >> y >> x;
        int dx[] = {1, 1, 1, 0, -1, -1, -1, 0, 0};
        int dy[] = {1, 0, -1, -1, -1, 0, 1, 1, 0};
        for (int j = 0; j < 9; j++) {
            int xx = x + dx[j];
            int yy = y + dy[j];
            if (xx - 1 <= 0 || xx + 1 > w || yy - 1 <= 0 || yy + 1 > h) continue;
            mp[pair<int, int> (yy, xx)]++;
        }
    }

    int ans[10] = {};
    for (auto x : mp) {
        ans[x.second]++;
    }

    cout << 1LL * (h - 2) * (w - 2) - mp.size() << endl;
    for (int i = 1; i < 10; i++) {
        cout << ans[i] << endl;
    }

    return 0;
}
