#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <cmath>
int main()
{
    int w, h;
    char c, c2;
    std::cin >> w >> h >> c;
    for(int i_h = 0; i_h < h; i_h++){
        if(c == 'B'){
            c2 = i_h % 2 == 0 ? 'B' : 'W';
        } else {
            c2 = i_h % 2 == 0 ? 'W' : 'B';
        }
        for(int i_w = 0; i_w < w; i_w++){
            std::cout << c2;
            c2 = c2 == 'B' ? 'W' : 'B';
        }
        std::cout << std::endl;
    }
    return 0;
}