#include const char *s="BW"; int main(){ int W,H; char C; scanf("%d %d %c",&W,&H,&C); C=C=='W'; int y,x; for(y=0;y