*a,c=input().split();w,h=map(int,a) for i in range(h):print(("WB"*w)[i%2+(c!="W"):][:w])