W, H, C = map(str, input().split())
pattun = ['B', 'W'] if C == 'B' else ['W', 'B']

for h in range(int(H)):
    t = ''
    for w in range(int(W)):
        t += pattun[(w + h) % 2]
    print(t)