W, H, C = map(str , input().split()) W, H = int(W), int(H) for i in range(0, H): if C=="B" and W%2==0: print("BW"*(W//2)) elif C=="B" and W%2!=0: print("BW"*(W//2)+"B") elif C=="W" and W%2==0: print("WB"*(W//2)) elif C=="W" and W%2!=0: print("WB"*(W//2)+"W")