W,H,C=input().split() w=int(W) t=('BW','WB')[(C=='W')]*w for i in range(int(H)):print(t[i%2:][:w])