#include int main() { int i,j; int row,column; char s[5]; scanf("%d %d %s",&column,&row,s); if(s[0]=='W'){ s[1]='B'; } else{ s[1]='W'; } for(i=0;i