#include <iostream>
#include <sstream>
#include <vector>
#include <cmath>
using namespace std;
# define M_PI 3.14159265358979323846

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);
    ostringstream sout;
    
    string ichimatsu = "WBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBW";
    
    int w, h;
    char c;
    
    cin >> w >> h >> c;
    bool isb = (c == 'B');
    
    for(int i = 0; i < h; i++){
    	sout << ichimatsu.substr((int)isb, w) << endl;
    	isb = !isb;
    }
    cout << sout.str();
    
    return 0;
}