#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long w, h, n;
  cin >> w >> h >> n;
  multiset<long long> s1, s2;
  s1.insert(0);
  s1.insert(h);
  s2.insert(0);
  s2.insert(w);
  multiset<long long> ans1, ans2;
  ans1.insert(h);
  ans2.insert(w);
  char z;
  long long a;
  for (long long i = 0; i < n; ++i) {
    cin >> z >> a;
    if (z == 'H') {
      auto j = s1.lower_bound(a);
      long long k = *j;
      j--;
      ans1.erase(ans1.find(k - *j));
      ans1.insert(k - a);
      ans1.insert(a - *j);
      s1.insert(a);
    } else {
      auto j = s2.lower_bound(a);
      long long k = *j;
      j--;
      ans2.erase(ans2.find(k - *j));
      ans2.insert(k - a);
      ans2.insert(a - *j);
      s2.insert(a);
    }
    long long res = (*ans1.rbegin()) * (*ans2.rbegin());
    cout << res << "\n";
  }
}
