tmp = [i for i in input().strip().split(' ')] W, H, C = int(tmp[0]), int(tmp[1]), tmp[2] C += 'B' if C == 'W' else 'W' for h in range(H): print('{}'.format((C * W)[:W])) C = C[::-1]