#include <bits/stdc++.h>
using namespace std;
void cut_sheet(multiset<int> &s, multiset<int> &b_s, int pos) {
  multiset<int>::iterator i, j;
  i = j = s.insert(pos);
  i++;
  j--;
  b_s.insert(*i - pos);
  b_s.insert(pos - *j);
  b_s.erase(b_s.find(*i - *j));
}
int main() {
  ios_base::sync_with_stdio(false);
  multiset<int> hor, ver, b_hor, b_ver;
  int w, h, n;
  cin >> w >> h >> n;
  hor.insert(0);
  hor.insert(w);
  b_hor.insert(w);
  ver.insert(0);
  ver.insert(h);
  b_ver.insert(h);
  while (n--) {
    char c;
    int pos;
    cin >> c >> pos;
    if (c == 'H')
      cut_sheet(ver, b_ver, pos);
    else
      cut_sheet(hor, b_hor, pos);
    cout << (long long)(*b_hor.rbegin()) * (*b_ver.rbegin()) << endl;
  }
  return 0;
}
