#include using namespace std; template using vec = vector; template using vvec = vec>; template using lqueue = priority_queue, greater>; template using gqueue = priority_queue, less>; int main() { int64_t h, w, q; cin >> h >> w >> q; int64_t sub = 0; map used; while (q--) { int y, x; cin >> y >> x; if (used[x] < h - y + 1) { sub += h - y + 1 - used[x]; used[x] = h - y + 1; } cout << h * w - sub << endl; } }