W, H, C = input().split()
W, H = int(W), int(H)
for i in range(H):
    print(''.join(C if (i+j) % 2 == 0 else chr(ord('B')+ord('W')-ord(C)) for j in range(W)))