#include <bits/stdc++.h>
#define PB push_back
#define MP make_pair
#define REP(i,n) for (int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define ALL(a) (a).begin(),(a).end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;
const int INF=1e9;
int main(){
      int w,h;
      char c;
      cin>>w>>h>>c;
      char f1='B',f2='W';
      if(c=='W')swap(f1,f2);
      REP(i,h){
            REP(j,w){
                  if((j+i)%2==0)cout<<f1;
                  else cout<<f2;
            }cout<<endl;
      }
}