W, H, C = input().split() W = int(W) H = int(H) for i in range(H): print(((C + 'WB'['BW'.index(C)]) * sum(divmod(W, 2)))[:W]) C = 'WB'['BW'.index(C)]