using System; class P{ public static void Main(){ string[] SHW = Console.ReadLine().Split(); int H = int.Parse(SHW[0])-1; int W = int.Parse(SHW[1])-1; int N = int.Parse(Console.ReadLine()); string[] S = new string[N]; int[] K = new int[N]; int x = 0; int y = 0; int n = 0; for(int i=0; i-1; --i){ if(S[i]=="C" && K[i] == x){ y = y-1<0 ? H : y-1; }else if(S[i]=="R" && K[i] == y){ x = x-1<0 ? W : x-1; } } Console.WriteLine((y+x)%2==0 ? "white" : "black"); } }