#include using namespace std; template void copy(vector from, vector to) { copy(from.begin(), from.end(), back_inserter(to)); } template void sort(vector a) { sort(a.begin(), a.end()); } template void input_to(vector a) { T a_i; cin >> a_i; a.push_back(a_i); } int main() { int w, h; char c; cin >> w >> h >> c; for (int i = 0; i < h; ++i) { for (int j = 0; j < w; ++j) { if (c == 'B') { if ((i + j) % 2 == 0) { cout << "B"; } else { cout << "W"; } } else { if ((i + j) % 2 == 0) { cout << "W"; } else { cout << "B"; } } } cout << endl; } cout << endl; }