#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long int ll;

char fi[100][100];

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int h,w; cin >> w >> h;
	char s; cin >> s;
	if(s=='B'){
		for(int i=0;i<h;i++){
			for(int j=0;j<w;j++){
				if((i+j)%2==0)fi[i][j]='B';
				else fi[i][j]='W';
			}
		}
	}
	else{
		for(int i=0;i<h;i++){
			for(int j=0;j<w;j++){
				if((i+j)%2==1)fi[i][j]='B';
				else fi[i][j]='W';
			}
		}
	}
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			cout << fi[i][j];
		}
		cout << endl;
	}
}