W, H, C = input().split() W, H, C = int(W), int(H), [0, 1][C == 'W'] res = [('BW'*(W+1))[C+r%2:C+r%2+W] for r in range(H)] print('\n'.join(res))