*WH,C=input().split() W,H=map(int,WH) S = "BW" * ((W+2)//2) j = int(C!='B') for i in range(H): print(S[j:j+W]) j ^= 1