package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

// エントリポイント
func main() {
	in := bufio.NewScanner(os.Stdin)
	// 幅と高Hと左上の色
	in.Scan()
	input1 := in.Text()
	fmt.Println(checkeredPattern(input1))
}
func checkeredPattern(input string) string {
	sp := strings.Split(input, " ")
	width, _ := strconv.Atoi(sp[0])
	height, _ := strconv.Atoi(sp[1])
	// true="B",false="W"
	pattern := sp[2] == "B"
	// 文字列の結合はbyteスライスにappendするのが速いらしい
	rtnByte := make([]byte, 0)

	for i := 0; i < height; i++ {
		for j := 0; j < width; j++ {
			if pattern {
				rtnByte = append(rtnByte, "B"...)
			} else {
				rtnByte = append(rtnByte, "W"...)
			}
			pattern = !pattern
		}

		// 偶数の場合はpatternを反転
		if width%2 == 0 {
			pattern = !pattern
		}

		rtnByte = append(rtnByte, "\n"...)
	}
	// 最後の1バイト(改行)を削除
	return string(rtnByte[:len(rtnByte)-1])
}