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

int main() {
  ios::sync_with_stdio(false);
  int w, h, n;
  cin >> w >> h >> n;
  map<pair<int, int>, int> cnt;
  while (n--) {
    int x, y;
    cin >> x >> y;
    for (int i = x - 3; i < x; i++)
      for (int j = y - 3; j < y; j++)
        if (i >= 0 && j >= 0 && i + 2 < w && j + 2 < h)
          cnt[make_pair(i, j)]++;
  }
  vector<long long> res(10, 0);
  res[0] = (long long) (w - 2) * (h - 2);
  for (auto &it:cnt)
    res[it.second]++, res[0]--;
  for (auto &x:res)
    cout << x << endl;
  return 0;
}