W,H,C=input().split() for i in range(int(H)):print(('BW'*99)[(i+ord(C))%2:][:int(W)])