#include <iostream>
using namespace std;

int main() {
  int w, h;
  char c, a, b;
  cin >> w >> h >> c;
  if (c == 'W') {
    a = 'W';
    b = 'B';
  } else {
    a = 'B';
    b = 'W';
  }
  for (int i = 0; i < h; i++) {
    for (int j = 0; j < w; j++) {
      if ((i + j) & 1) cout << b;
      else cout << a;
    }
    cout << endl;
  }
  return 0;
}