W,H,C = list(map(str,input().split())) for i in range(int(H)): color="" for j in range(int(W)): color+=C C="W" if C=="B" else "B" print(color)