#include <bits/stdc++.h> using namespace std; #define REP(i,N) for(int i=0;i<N;i++) int main(){ int W,H,i,j; char C,D; cin>>W>>H>>C; if(C=='B') D='W'; else D='B'; REP(i,H){ REP(j,W){ if((i+j)%2) cout<<D; else cout<<C; } cout<<endl; } return 0; }