W,H,C=input().split() w=int(W) for i in range(int(H)):print(('WB'*w)[(i&1)^(C<'W'):][:w])