W, H, C = input().split()
H = int(H)
W = int(W)
BW = "BW"
C = BW.index(C)
for i in range(H):
    for j in range(W):
        print(BW[(i + j + C) % 2], end = "")
    print("")