#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int w, h;
  cin >> w >> h >> n;
  multiset<int> cuth, cutw, maxh, maxw;
  cuth.insert(0);
  cuth.insert(h);
  cutw.insert(0);
  cutw.insert(w);
  maxh.insert(h);
  maxw.insert(w);
  int len;
  for (int i = 0; i < n; i++) {
    char str[10];
    cin >> str;
    cin >> len;
    if (str[0] == 'H') {
      multiset<int>::iterator it, it1, it2;
      it = cuth.lower_bound(len);
      it1 = it;
      it1--;
      int val = *it - *it1;
      it2 = maxh.lower_bound(val);
      maxh.erase(it2);
      cuth.insert(len);
      maxh.insert((len - *it1));
      maxh.insert((*it - len));
    } else {
      multiset<int>::iterator it, it1, it2;
      it = cutw.lower_bound(len);
      it1 = it;
      it1--;
      int val = *it - *it1;
      it2 = maxw.lower_bound(val);
      maxw.erase(it2);
      cutw.insert(len);
      maxw.insert((len - *it1));
      maxw.insert((*it - len));
    }
    long long int l1 = *(maxw.rbegin());
    long long int l2 = *(maxh.rbegin());
    long long int ans = l1 * l2;
    cout << ans << endl;
  }
  return 0;
}
