#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int h, w; //不要なワーク int input; //入力 bool rBit = true, cBit = true; //Rbit, Cbit string str; //文字列 cin >> h >> w; cin >> input; while(input) { cin >> str >> h; str += to_string(h); if(str == "R0") { rBit = !rBit; } if(str == "C0") { cBit = !cBit; } --input; } cout << ((rBit ^ cBit) ? ("black") : ("white")) << endl; return 0; }