w,h,c=raw_input().split() s="WB"*int(w) for i in range(int(h)): print s[(i&1)^(c=="B"):][:int(w)]