#include <bits/stdc++.h>
using namespace std;
int wcnt[200010], hcnt[200010];
int main() {
  int w, h, n;
  cin >> w >> h >> n;
  wcnt[w]++;
  hcnt[h]++;
  set<int> W, H;
  set<int>::iterator it, it2;
  W.insert(0);
  W.insert(w);
  H.insert(0);
  H.insert(h);
  long long wmx = w, hmx = h;
  for (int i = 0; i < n; i++) {
    char type;
    int x;
    cin >> type >> x;
    if (type == 'V') {
      W.insert(x);
      it = it2 = W.find(x);
      it++;
      it2--;
      int l = *it2, r = *it;
      wcnt[r - l]--;
      wcnt[r - x]++;
      wcnt[x - l]++;
    } else {
      H.insert(x);
      it = it2 = H.find(x);
      it++;
      it2--;
      int l = *it2, r = *it;
      hcnt[r - l]--;
      hcnt[r - x]++;
      hcnt[x - l]++;
    }
    while (!wcnt[wmx]) wmx--;
    while (!hcnt[hmx]) hmx--;
    cout << wmx * hmx << endl;
  }
  return 0;
}
