#include #include #include #include #include #include using namespace std; typedef unsigned char byte; typedef long long int LLint; typedef unsigned long long int uLLint; class Twin{ public: int c,k; Twin(int a,int b):c(a),k(b){} }; int main(){ int h,w,n,k; char c; int i; int x,y; stack stk; cin>>h>>w>>n; for (i=0;i>c>>k; stk.push(Twin((int)c,k)); } x=y=0; for (;!stk.empty();stk.pop()){ Twin &t=stk.top(); if (t.c=='R'){ if (y==t.k) x--; }else{ if (x==t.k) y--; } if (x<0) x=w-1; if (y<0) y=h-1; } cout<<( ((x&1)^(y&1))?"black":"white" )<