#include <iostream>
#include <math.h>
#include <algorithm>
#include <functional>
#include <vector>
#include <typeinfo>
#include <climits>
#include <ctype.h>
#include <string>
using namespace std;
#define INIT cin.tie(0); ios::sync_with_stdio(false);
#define FOR(i, a, n) for (int i = a; i < n; i++)
#define REP(i, n) for(int i = 0; i < n; i++)

int main()
{
    INIT;

    int w, h;
    char c;
    cin >> w >> h >> c;

    char C[2] = {'B', 'W'};
    if(c == 'W'){
        C[0] = 'W';
        C[1] = 'B';
    }

    REP(i, h){
        if(i % 2 == 0){
            REP(j, w){
                if(j % 2 == 0) cout << C[0];
                else cout << C[1];
            }
            cout << endl;
        }else{
            REP(j, w){
                if(j % 2 == 0) cout << C[1];
                else cout << C[0];
            }
            cout << endl;
        }
    }


    return 0;
}