W,H,C1 = input().split() W,H = int(W), int(H) C = 'BW' * W s = int(C1 != 'B') for i in range(H): print(C[s:s+W]) s = 1 - s