#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  long long W, H, n;
  cin >> W >> H >> n;
  multiset<long long> sW, sH;
  set<long long> vW, vH;
  sW.insert(H);
  sH.insert(W);
  vW.insert(0);
  vH.insert(0);
  vH.insert(W);
  vW.insert(H);
  char c;
  long long v, l, r;
  multiset<long long>::iterator it;
  for (long long i = (0); i < (n); i++) {
    cin >> c >> v;
    if (c == 'H') {
      l = *(--vW.upper_bound(v));
      r = *(vW.upper_bound(v));
      vW.insert(v);
      it = sW.find(r - l);
      sW.erase(it);
      sW.insert(v - l);
      sW.insert(r - v);
    } else {
      l = *(--vH.upper_bound(v));
      r = *(vH.upper_bound(v));
      vH.insert(v);
      it = sH.find(r - l);
      sH.erase(it);
      sH.insert(v - l);
      sH.insert(r - v);
    }
    long long a = *(--sH.end());
    long long b = *(--sW.end());
    cout << a * b << endl;
  }
}
