N = input().split()
W, H  = int(N[0]), int(N[1])
C = ("WB" if N[2] == "W" else "BW") * (W // 2 + 2)
for i in range(H):
    print(C[0:W] if i % 2 == 0 else C[1:W+1])