bw="BW"*30 w,h,c=input().split() w,h=int(w),int(h) l=c=="W" for _ in range(h): print(bw[l:l+w]) l=1-l