#include <bits/stdc++.h>
using namespace std;
int main() {
  int w, h, n;
  map<int, bool> hnum, vnum;
  map<int, int> hsize, vsize;
  map<int, bool>::iterator i1, i2;
  cin >> w >> h >> n;
  hnum[0] = true;
  hnum[h] = true;
  vnum[0] = true;
  vnum[w] = true;
  hsize[h] = 1;
  vsize[w] = 1;
  char c;
  int p, d;
  for (int i = 0; i < n; i++) {
    cin >> c >> p;
    if (c == 'H') {
      hnum[p] = true;
      i1 = hnum.find(p);
      i2 = i1--;
      i2++;
      d = (i2->first) - (i1->first);
      if ((--hsize[d]) == 0) hsize.erase(d);
      hsize[(i2->first) - p]++;
      hsize[p - (i1->first)]++;
    } else {
      vnum[p] = true;
      i1 = vnum.find(p);
      i2 = i1--;
      i2++;
      d = (i2->first) - (i1->first);
      if ((--vsize[d]) == 0) vsize.erase(d);
      vsize[(i2->first) - p]++;
      vsize[p - (i1->first)]++;
    }
    cout << (long long int)(vsize.rbegin()->first) *
                (long long int)(hsize.rbegin()->first)
         << "\n";
  }
  return 0;
}
