a,b,c=input().split() d="B" if c=="W" else "W" a=int(a);b=int(b) for i in range(b): for j in range(a): print(c if(i+j)%2==0 else d ,sep="") print("")