P = "BW" * 26
W, H, C = input().split()
ans = ""

idx = P.index(C)
for i in range(int(H)):
    ans += P[idx + i%2 : idx + int(W) + i%2] + "\n"

print(ans)