w, h, c = input().split() w = int(w) h = int(h) if c == "B": s = "BW" else: s = "WB" for i in range(h): for j in range(w): print(s[(i%2)^(j%2)], end="") print()