#include <bits/stdc++.h>
using namespace std;
inline int read() {
  char c = getchar();
  int x = 0, f = 1;
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    x = (x << 3) + (x << 1) + c - '0';
    c = getchar();
  }
  return x * f;
}
multiset<int> h, v, hlen, vlen;
multiset<int>::iterator it;
int main() {
  int n, m, q, pos, i, x, y;
  char opt;
  n = read();
  m = read();
  q = read();
  h.insert(0);
  h.insert(m);
  hlen.insert(m);
  v.insert(0);
  v.insert(n);
  vlen.insert(n);
  for (i = 1; i <= q; i++) {
    opt = getchar();
    pos = read();
    if (opt == 'H') {
      h.insert(pos);
      it = h.find(pos);
      it--;
      x = *it;
      it++;
      it++;
      y = *it;
      it = hlen.find(y - x);
      hlen.erase(it);
      hlen.insert(y - pos);
      hlen.insert(pos - x);
    } else {
      v.insert(pos);
      it = v.find(pos);
      it--;
      x = *it;
      it++;
      it++;
      y = *it;
      it = vlen.find(y - x);
      vlen.erase(it);
      vlen.insert(y - pos);
      vlen.insert(pos - x);
    }
    it = hlen.end();
    it--;
    x = *it;
    it = vlen.end();
    it--;
    y = *it;
    printf("%lld\n", (long long)x * y);
  }
  return 0;
}
