#include using namespace std; int main(){ int w,h; char c; cin>>w>>h>>c; int flag=1; if(c=='W') flag*=-1; for(int i=0;i