using System; public class Program { public static void Main() { //int num = int.Parse(Console.ReadLine() ?? string.Empty); string[] num = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); //string str = Console.ReadLine() ?? string.Empty; int w = int.Parse(num[0]); int h = int.Parse(num[1]); string color = num[2]; char[,] c = new char[h,w]; bool aa = true; if(color == "B") { aa = false; } for(int i = 0; i < h;i++) { for(int j = 0; j < w;j++) { if( aa ) { c[i, j] = 'W'; aa = false; } else { c[i, j] = 'B'; aa = true; } } if (c[i,0] == 'B') { aa = true; } else { aa = false; } } for(int i = 0;i < h;i++) { for(int j = 0;j < w;j++) { Console.Write(c[i,j]); } Console.WriteLine(); } } }