#include <bits/stdc++.h>
#define rep(i,n)for(long long i=0;i<(n);i++)
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
const ll INF=1e18;
const int MOD=1e9+7;
const double pi=acos(-1);

int main(){
  int w,h;
  char c;
  cin >> w >> h >> c;
  rep(i,h){
    rep(j,w){
      if((i+j)%2==0)cout<<c;
      else{
        if(c=='W')cout<<'B';
        else cout<<'W';
      }
    }
    cout << endl;
  }
}