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