w, h, c = input().split()
w, h = int(w), int(h)

ls = ['W', 'B']
c = ls.index(c)
for i in range(h):
    s = ''
    for j in range(w):
        s += ls[(c + i + j) % 2]
    print(s)