using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string[] whc = input.Split(' '); int w = int.Parse(whc[0]); int h = int.Parse(whc[1]); string str = ""; if (whc[2] == "W") { while (str.Length < w) { str = str + "B" + "W"; } } else { while (str.Length < w) { str = str + "W" + "B"; } } for (int i = 0; i < h; i++) { string temp = str.Substring(0, 1); str = str.Remove(0, 1); str = str + temp; if (int.Parse(whc[0]) % 2 == 1) { Console.WriteLine(str.Remove(str.Length - 1, 1)); } else { Console.WriteLine(str); } } } } }