#include <stdio.h>
int main(){
    //iuput
    int W,H;
    char C;
    scanf("%d %d %c",&W,&H,&C);

    //output
    for (int y = 0;y < H;y++){
        for (int x = 0;x < W;x++){
            if ((x+y)%2 == 0){
                if (C == 'B'){
                    printf("B");
                }else{
                    printf("W");
                }
            }else{
                if (C == 'B'){
                    printf("W");
                }else{
                    printf("B");
                }
            }
        }
        printf("\n");
    }
    return 0;
}