#include using namespace std; typedef long long ll; int main() { int h,w,n; cin>>h>>w>>n; int a[n],b[n]; for (int i=0;i>a[i]>>b[i]; int r=0; int c=0; for (int i=n-1;i>=0;i--) { if (a[i]=='R'&&b[i]==r) c=(c-1+w)%w; else if (a[i]=='C'&&b[i]==c) r=(r-1+h)%h; } if ((r+c)%2==0) puts("white"); else puts("black"); return 0; }