#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { int w, h; char c; cin >> w >> h >> c; bool b = c=='B' ? true : false; for(int i=0; i<h; i++){ string s; for(int j=0; j<w; j++){ if(b){ s += i%2 ? j%2 ? 'B' : 'W' : j%2 ? 'W' : 'B'; } else{ s += i%2 ? j%2 ? 'W' : 'B' : j%2 ? 'B' : 'W'; } } cout << s << endl; } return 0; }