W,H,C=raw_input().split()
D="B"
if D==C:
    D="W"
line = ""
for i in range(int(W)+1):
    if i%2==1:
        line+=D
    else:
        line+=C
for i in range(int(H)):
    print line[i%2:i%2+int(W)]