#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  set<int> w, h;
  multiset<int> sw, sh;
  w.insert(0);
  w.insert(a);
  h.insert(0);
  h.insert(b);
  sw.insert(a);
  sh.insert(b);
  while (c--) {
    char ch;
    int cut;
    cin >> ch >> cut;
    if (ch == 'H') {
      swap(w, h);
      swap(sw, sh);
    }
    auto vmax = w.lower_bound(cut);
    auto vmin = vmax;
    vmin--;
    w.insert(cut);
    sw.erase(sw.find(*vmax - *vmin));
    sw.insert(cut - *vmin);
    sw.insert(*vmax - cut);
    if (ch == 'H') {
      swap(w, h);
      swap(sw, sh);
    }
    long long act = (long long)(*sw.rbegin()) * (long long)(*sh.rbegin());
    cout << act << endl;
  }
  return 0;
}
