W,H,C = map(str,input().split()) W = int(W) H = int(H) itimatu = "BW"*100 for i in range(H): print(itimatu[i+(C == "W"):i+(C == "W")+W])