#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int w, h, n;
  cin >> w >> h >> n;
  set<long long int> ww, hh;
  multiset<long long int> wid, hei;
  ww.insert(0);
  ww.insert(w);
  hh.insert(0);
  hh.insert(h);
  wid.insert(-w);
  hei.insert(-h);
  for (long long int i = 0; i < n; ++i) {
    char c;
    long long int v;
    cin >> c >> v;
    if (c == 'H') {
      set<long long int>::iterator it = hh.lower_bound(v);
      long long int up = *it;
      it--;
      long long int down = *it;
      hei.erase(hei.find(down - up));
      hei.insert(v - up);
      hei.insert(down - v);
      hh.insert(v);
    } else {
      set<long long int>::iterator it = ww.lower_bound(v);
      long long int up = *it;
      it--;
      long long int down = *it;
      wid.erase(wid.find(down - up));
      wid.insert(v - up);
      wid.insert(down - v);
      ww.insert(v);
    }
    cout << (*hei.begin() * *wid.begin()) << endl;
  }
  return 0;
}
