w, h, c = input().split() w = int(w) h = int(h) opo = {"B": "W", "W": "B"} li = [c, opo[c]] for hi in range(h): for wi in range(w): i = (hi + wi) % 2 print(li[i], end="") print()