lsin=input().split()
ls=["B","W"]*int(lsin[0])
if lsin[2]=="W":
    ls.reverse()    
for j in range(int(lsin[1])):
    for i in range(int(lsin[0])):
        print(ls[i],end="")
    ls.reverse()
    print()