w,h,c=input().split() w=int(w) h=int(h) yoko='BW'*(w//2+1) p=0 if c=='B' else 1 for i in range(h): print(yoko[p:p+w]) p=1-p