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

s = ["B", "W"] if C == "B" else ["W", "B"]

for i in range(H):
	print("".join(s[(i + j) % 2] for j in range(W)))