w, h, c = input().split()
s = "BW"
for i in range(int(h)):
    for j in range(int(w)):
        print(s[(i + j + (c == "W")) % 2], end="")
    print()