w,h,c=input().split()
d="B" if c=="W" else "W"

for i in range(int(h)):
  for j in range(int(w)):
    if (i+j)%2:print(d,end="")
    else:print(c,end="")
  print()