#include<bits/stdc++.h> using namespace std; int main() { int H,W; cin >> W >> H; char w; cin >> w; bool ok = true; if(w=='W') ok = false; for(int i=0; i<H; i++) { for(int j=0; j<W; j++) { cout << (((i+j+ok)%2) ? 'B' : 'W' ); } cout << endl; } return 0; }