w,h,c=input().split() for i in range(int(h)):print(("BW"*99)[i+ord(c):][:int(w)])