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