using System;

namespace yukicoder
{
    class Program
    {

        static void Main(string[] args)
        {
            var str = Console.ReadLine();
            var g = str.Split(" ");
            string[] strings = new string[] {"B" , "W"};
            string ss = "" ;
            

            int W = int.Parse(g[0]);
            int H = int.Parse(g[1]);
            string C = g[2];
            string C2 = g[2];

            for (int i = 0; i < H; i++)
            {
                for (int j = 0; j < W ; j++)
                {
                    if (C == "B")
                    {
                        ss = strings[0];
                        C = "W";
                    }
                    
                    else if (C == "W")
                    {
                        ss = strings[1];
                        C = "B";
                    }
                    Console.Write(ss);
                }
                Console.WriteLine();
                if(C2 == "B")
                {
                    C = "W";
                    C2 = "W";
                }
                else
                {
                    C = "B";
                    C2 = "B";
                }
            }
        }
    }
}