#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  set<long long> s1, s2;
  long long w, h, n;
  cin >> w >> h >> n;
  multiset<long long> H, V;
  H.insert(h);
  V.insert(w);
  s1.insert(0);
  s1.insert(w);
  s2.insert(0);
  s2.insert(h);
  set<long long>::iterator it1, it2;
  multiset<long long>::iterator it;
  while (n--) {
    char t;
    long long ch;
    cin >> t >> ch;
    if (t == 'V') {
      s1.insert(ch);
      it1 = s1.find(ch);
      it1--;
      it2 = s1.find(ch);
      it2++;
      V.insert(ch - (*it1));
      V.insert((*it2) - ch);
      it = V.find((*it2) - (*it1));
      V.erase(it);
    } else {
      s2.insert(ch);
      it1 = s2.find(ch);
      it1--;
      it2 = s2.find(ch);
      it2++;
      H.insert(ch - (*it1));
      H.insert((*it2) - ch);
      it = H.find((*it2) - (*it1));
      H.erase(it);
    }
    long long h1, v1;
    it = H.end();
    it--;
    h1 = *(it);
    it = V.end();
    it--;
    v1 = *(it);
    cout << h1 * v1 << "\n";
  }
}
