#include using namespace std; using ll = long long; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b A){ ll L = A.size(); FOR(i, 0, L){ if(i) cout << ' '; cout << A[i]; } cout << endl; } int main(){ cin.tie(0); ios::sync_with_stdio(false); // input ll W, H; cin >> W >> H; char c; cin >> c; char d; if(c=='B'){ d = 'W'; }else{ d = 'B'; } FOR(i, 0, H){ FOR(j, 0, W){ if((i+j)%2==0){ cout << c; }else{ cout << d; } } cout << endl; } return 0; }