*a,c=input().split()
w,h=map(int,a)
s="WB"*w
for i in range(h):
    print(s[c!="W":][i%2:i%2+w])