#include <bits/stdc++.h>
using namespace std;
set<int> hori_cuts, vert_cuts;
set<pair<int, int>> hori_begin, vert_begin;
int main() {
  int w, h, n;
  cin >> w >> h >> n;
  vert_cuts.insert(w);
  vert_cuts.insert(0);
  vert_begin.insert({w, 0});
  hori_cuts.insert(h);
  hori_cuts.insert(0);
  hori_begin.insert({h, 0});
  while (n--) {
    char ch;
    cin >> ch;
    int num;
    cin >> num;
    if (ch == 'V') {
      int l = *(--vert_cuts.lower_bound(num));
      int h = *(vert_cuts.upper_bound(num));
      vert_begin.erase({h - l, l});
      vert_begin.insert({num - l, l});
      vert_begin.insert({h - num, num});
      vert_cuts.insert(num);
    } else {
      int l = *(--hori_cuts.lower_bound(num));
      int h = *(hori_cuts.upper_bound(num));
      hori_begin.erase({h - l, l});
      hori_begin.insert({num - l, l});
      hori_begin.insert({h - num, num});
      hori_cuts.insert(num);
    }
    long long int ans = (long long int)(hori_begin.rbegin()->first) *
                        (long long int)(vert_begin.rbegin()->first);
    cout << ans << endl;
  }
}
