W, H, C = input().split()
W, H = int(W), int(H)

for i in range(H):
    S = []
    for j in range(W):
        if (i + j) % 2 == (C == "W"):
            S.append("B")
        else:
            S.append("W")
    print("".join(S))