#include using namespace std; int main() { int W,H; cin>>W>>H; char C; cin>>C; vector ans={}; int c; if (C=='B'){ c = 0; } else{ c = 1; } for (int i=0;i