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