res = ["W","B"] s = input().split() w,h = int(s[0]), int(s[1]) x = s[2]=="B" for i in range(h): print("".join(res[(i+j+x)%2] for j in range(w)))