#include <bits/stdc++.h>
using namespace std;
multiset<long long int> sth, stv, sthd, stvd;
multiset<long long int>::iterator it, it1;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long int h, v, n, i, val, p, q, value;
  char c;
  cin >> v >> h >> n;
  sth.insert(0);
  sth.insert(h);
  sthd.insert(h);
  stv.insert(0);
  stv.insert(v);
  stvd.insert(v);
  for (i = 0; i < n; i++) {
    cin >> c >> val;
    if (c == 'H') {
      val = h - val;
      sth.insert(val);
      it = sth.find(val);
      it1 = it;
      it--;
      it1++;
      p = (*it);
      q = (*it1);
      value = q - p;
      it = sthd.find(value);
      sthd.erase(it);
      sthd.insert(val - p);
      sthd.insert(q - val);
    } else {
      stv.insert(val);
      it = stv.find(val);
      it1 = it;
      it--;
      it1++;
      p = (*it);
      q = (*it1);
      value = q - p;
      it = stvd.find(value);
      stvd.erase(it);
      stvd.insert(val - p);
      stvd.insert(q - val);
    }
    it = sthd.end();
    it1 = stvd.end();
    it--;
    it1--;
    p = (*it);
    q = (*it1);
    cout << p * q << "\n";
  }
  return 0;
}
