W,H,C=input().split() t='' for _ in range(int(W)): C=('B','W')[C=='B'] t+=C for _ in range(int(H)): n='' for x in t:n+=('B','W')[x=='B'] print(n) t=n