W, H, C = input().split() S = 'BW' * 26 x = [0, 1][C == 'W'] for i in range(int(H)): print(S[i%2+x:][:int(W)])