#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, w, h;
  cin >> w >> h >> n;
  set<long long int> h1, w1;
  set<long long int>::iterator it1, it2;
  w1.insert(0);
  w1.insert(w);
  h1.insert(0);
  h1.insert(h);
  multiset<long long int> prq1, prq2;
  prq1.insert(w);
  prq2.insert(h);
  for (long long int i = 0; i < n; i++) {
    long long int x;
    char ch;
    cin >> ch >> x;
    if (ch == 'V') {
      it2 = w1.upper_bound(x);
      it2--;
      it1 = it2;
      it2++;
      prq1.erase(prq1.find(*it2 - *it1));
      prq1.insert((x - *it1));
      prq1.insert((*it2 - x));
      w1.insert(x);
    } else {
      it2 = h1.upper_bound(x);
      it2--;
      it1 = it2;
      it2++;
      prq2.erase(prq2.find(*it2 - *it1));
      prq2.insert((x - *it1));
      prq2.insert((*it2 - x));
      h1.insert(x);
    }
    it1 = prq1.end();
    it2 = prq2.end();
    it1--;
    it2--;
    cout << ((*it1) * (*it2)) << "\n";
  }
}
