using System;

namespace yukicoder
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');
            int a = int.Parse(s[0]);//幅
            int b = int.Parse(s[1]);//高さ
            string[,] t = new string[b,a ];
            string bw = "W";
            if (bw == s[2])
            {
                bw = "B";
            }


            for(int i = 0; i <b; i++)
            {
                string f=s[2];
                string f1=bw;
                for(int j = 0; j < a; j++)
                {
                    if (i%2==1)
                    {
                        f = bw;
                        f1 = s[2];
                    }
                     
                    
                    if (j % 2 == 0)
                    {
                        t[i, j] = f;
                    }else{
                        t[i, j] = f1;
                    }
                    Console.Write(t[i, j]);
                }
                Console.WriteLine("");
            }
        }
    }
}