#include <bits/stdc++.h>
using namespace std;
int main() {
  int w, h, n;
  char choice;
  int x, def, l, r;
  long long w1, h1;
  set<int> horizonal;
  set<int> vertical;
  set<int>::iterator it;
  multiset<int> defferintH;
  multiset<int> defferintV;
  multiset<int>::iterator it2;
  cin >> w >> h >> n;
  horizonal.insert(0);
  vertical.insert(0);
  defferintH.insert(h);
  horizonal.insert(h);
  vertical.insert(w);
  defferintV.insert(w);
  for (int i = 0; i < n; i++) {
    cin >> choice >> x;
    if (choice == 'H') {
      it = horizonal.insert(x).first;
      it--;
      l = *it;
      it++;
      it++;
      r = *it;
      def = r - l;
      defferintH.erase(defferintH.find(def));
      defferintH.insert(x - l);
      defferintH.insert(r - x);
    } else {
      it = vertical.insert(x).first;
      it--;
      l = *it;
      it++;
      it++;
      r = *it;
      def = r - l;
      defferintV.erase(defferintV.find(def));
      defferintV.insert(x - l);
      defferintV.insert(r - x);
    }
    it2 = defferintH.end();
    it2--;
    h1 = *it2;
    it2 = defferintV.end();
    it2--;
    w1 = *it2;
    cout << w1 * h1 << endl;
  }
}
