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