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]); for (int i = 0; i < h; i++) { string str = ""; string addstr = whc[2]; if (addstr=="W") { if (i % 2 == 1) { addstr = "B"; } } else { if (i % 2 == 1) { addstr = "W"; } } for (int j = 0; j < w; j++) { str = str + addstr; if(addstr=="B") { addstr = "W"; } else { addstr = "B"; } } Console.WriteLine(str); } } } }