#include <bits/stdc++.h>
using namespace std;
set<int> X, Y;
int xcnt[200000 + 10], ycnt[200000 + 10];
int main() {
  int i, j, k, t, cs, m, mn, mx, my, w, h, n, v, lo, hi, key, l, r, mid;
  char str[5];
  scanf("%d %d %d", &w, &h, &n);
  X.insert(0);
  X.insert(h);
  Y.insert(0);
  Y.insert(w);
  xcnt[h]++;
  ycnt[w]++;
  mx = h;
  my = w;
  set<int>::iterator it;
  while (n--) {
    scanf("%s %d", str, &v);
    if (str[0] == 'H') {
      it = X.lower_bound(v);
      r = *it;
      l = *(--it);
      xcnt[r - l]--;
      xcnt[v - l]++;
      xcnt[r - v]++;
      while (!xcnt[mx]) mx--;
      X.insert(v);
    } else {
      it = Y.lower_bound(v);
      r = *it;
      l = *(--it);
      ycnt[r - l]--;
      ycnt[v - l]++;
      ycnt[r - v]++;
      while (!ycnt[my]) my--;
      Y.insert(v);
    }
    printf("%I64d\n", (long long int)mx * my);
  }
  return 0;
}
