using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace template
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();
            bool flag = s[2] == "B";
            for (int i = 0; i < int.Parse(s[1]); i++)
            {
                bool isB = flag;
                for (int j = 0; j < int.Parse(s[0]); j++)
                {
                    Console.Write(isB ? 'B' : 'W');
                    isB = !isB;
                }
                flag = !flag;
                Console.WriteLine();
            }
        }
    }
}