s = input().split() w = int(s[0]) h = int(s[1]) colors = ['B', 'W'] if s[2] == 'B' else ['W', 'B'] for height in range(h): row = '' for width in range(w): row += colors[(height + width) % 2] print(row)