W,H,C = list(map(str,input().split()))
for i in range(int(H)):
	color = C
	rt=""
	for j in range(int(W)):
		rt+=color
		color="W" if color=="B" else "B"
	C="W" if C=="B" else "B"
	print(rt)