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