#include<bits/stdc++.h>
#define re register
#define ll long long
using namespace std;
int n,m,k,a[5000009],b[5000009],ans,s;
char c;
inline int read()
{
int x,f=1,c;
while((c=getchar())>'9'||c<'0')f=(c=='-'?-1:1);x=c-'0';
while((c=getchar())>='0'&&c<='9')x=(x<<3)+(x<<1)+c-'0';
return x*f;
}
int main()
{
m=read(),n=read(),k=read();
for(re int i=1;i<=k;++i)
{
c=getchar(),s=read();
if(c=='R')
++a[s];
else
++b[s];
}
for(re int i=1;i<=n;++i)
for(re int j=1;j<=m;++j)
{
if((a[i]+b[j])%2)
++ans;
}
cout<<ans;
return 0;
}