#include using namespace std; typedef long long ll; int main() { int w, h; char c, d; cin >> w >> h >> c; if (c == 'B') d = 'W'; else d = 'B'; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { if ((i+j)%2==0) cout << c; else cout << d; } cout << endl; } return 0; }