a,b,c=input().split() a=int(a);b=int(b);c=c=='W' for _ in[0]*b: for _ in[0]*a: print('BW'[c],end='') c=not c if a&1==0:c=not c print()