#include #include using namespace std; int main() { int h,w; cin >> w >> h; char c; cin >> c; vector> b(h, vector(w)); b[0][0] = ((c == 'B')?true:false); for(int i = 1; i < h; i++){ b[i][0]=not b[i-1][0]; } for(int i = 0; i < h; i++){ for(int j = 1; j < w; j++){ b[i][j] = not b[i][j-1]; } } for(int i = 0; i < h; i++){ for(int j = 0; j < w; j++){ cout << (b[i][j]?'B':'W'); } cout << endl; } return 0; }