#include using namespace std; int main() { int h,w;char c;cin>>w>>h>>c; char d; if(c=='B')d='W'; else d='B'; for(int i=0;i