#include<iostream> #include<string> #include<algorithm> #include<cmath> #include<math.h> #include<iomanip> #include<stdio.h> #include<random> #include<ctime> #include<cstdlib> using namespace std; int main(){ int w, h; char c, c_other, ans[50][50]; cin >> w >> h >> c; if(c=='W'){ c_other='B'; } else { c_other='W'; } for(int i=0; i<h; i++){ for(int j=0; j<w; j++){ if(i%2!=0){ if(j%2!=0){ ans[i][j]=c; } else { ans[i][j]=c_other; } } else { if(j%2!=0){ ans[i][j]=c_other; } else { ans[i][j]=c; } } } } for(int i=0; i<h; i++){ for(int j=0; j<w; j++){ cout << ans[i][j]; } cout << endl; } return 0; }