#include <stdio.h> int main(){ int yoko, tate; char c; scanf("%d %d %c", &yoko, &tate, &c); for (int i = 0; i < tate; i++){ for (int j = 0; j < yoko; j++){ if ((i + j) % 2 == 0){ printf("%c", c); } else { if (c == 'B'){ printf("W"); } else{ printf("B"); } } } printf("\n"); } }