W, H, C = map(input().split()) M = [0]*W for i in H: for j in W: if C == 'B': M[j] = 'B' C = 'W' else: M[j] = 'W' C = 'B' print(M)