w,h,c=input().split() w=int(w) h=int(h) for i in range(w): if c=="B" and i%2==0 or c=="W" and i%2==1: print("BW"*h) else: print('WB'*h)