#include #include using namespace std; int main() { int h,w,n; char c; int k; cin >> h >> w >> n; vector< vector > masu; masu.resize(h); for(int j=0;j> c >> k; if(c == 'R'){ masu[k].insert(masu[k].begin(),masu[k].back()); masu[k].pop_back(); }else if(c == 'C'){ int last = masu[h-1][k]; for(int m=h-1;m>0;m--){ masu[m][k] = masu[m-1][k]; } masu[0][k] = last; } } if(masu[0][0]) cout << "black" << endl; else cout << "white" << endl; return 0; }