#include <bits/stdc++.h>
using namespace std;
int x, i, d, y, a[200005], b[200005], t, a1, a2, a3, a4, high, low;
char c;
set<int> xcoordinate, ycoordinate;
multiset<long long> xlength, ylength;
set<int>::iterator p;
int main() {
  cin >> x >> y >> a1;
  xlength.insert(x);
  ylength.insert(y);
  xcoordinate.insert(0);
  ycoordinate.insert(0);
  xcoordinate.insert(x);
  ycoordinate.insert(y);
  for (i = 0; i < a1; i++) {
    cin >> c >> d;
    if (c == 'V') {
      p = xcoordinate.lower_bound(d);
      high = *p;
      low = *--p;
      xlength.erase(xlength.find(high - low));
      xlength.insert(d - low);
      xlength.insert(high - d);
      xcoordinate.insert(d);
    } else {
      p = ycoordinate.lower_bound(d);
      high = *p;
      low = *--p;
      ylength.erase(ylength.find(high - low));
      ylength.insert(d - low);
      ylength.insert(high - d);
      ycoordinate.insert(d);
    }
    cout << (*(--xlength.end())) * (*(--ylength.end())) << endl;
  }
}
