#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long w, h, n;
  char *s = new char[7];
  scanf("%I64d%I64d%I64d", &h, &w, &n);
  set<long long> sw;
  set<long long> sh;
  sw.insert(0);
  sw.insert(w);
  sh.insert(0);
  sh.insert(h);
  multiset<long long> dw;
  multiset<long long> dh;
  dw.insert(w);
  dh.insert(h);
  for (long long _ = 0; _ < n; _++) {
    long long k;
    scanf("%s%I64d", s, &k);
    if (s[0] == 'H') {
      sw.insert(k);
      auto i = sw.find(k);
      auto bi = i, ai = i;
      bi--;
      ai++;
      dw.erase(dw.find(*ai - *bi));
      dw.insert(*ai - *i);
      dw.insert(*i - *bi);
    } else {
      sh.insert(k);
      auto i = sh.find(k);
      auto bi = i, ai = i;
      bi--;
      ai++;
      dh.erase(dh.find(*ai - *bi));
      dh.insert(*ai - *i);
      dh.insert(*i - *bi);
    }
    auto wend = dw.end();
    auto hend = dh.end();
    printf("%I64d\n", *(--hend) * *(--wend));
  }
  return 0;
}
