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