w,h,c = raw_input().split()
w = int(w); h = int(h)
v = [c,'W' if c=='B' else 'B']
for i in range(h):
	print "".join(v[(i+j)%2] for j in range(w))