#include <bits/stdc++.h>
using namespace std;

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 ((i + j) % 2 ^ (c == 'B')) {
        cout << 'B';
      } else {
        cout << 'W';
      }
    }
    cout << endl;
  }
  return 0;
}