// #pragma GCC optimize ("Ofast") // #pragma GCC optimize ("unroll-loops") // #pragma GCC target ("avx,avx2,fma") #include using std::cin, std::cout, std::cerr; using ll = long long; int main() { std::ios::sync_with_stdio(false); int n, m; cin >> n >> m; int x = 0, y = 0; int q; cin >> q; std::function solve = [&]() { if(q == 0) return; char c; int k; cin >> c >> k; q --; solve(); if(c == 'R' && k == x) { y --; if(y == -1) y = m - 1; } if(c == 'C' && k == y) { x --; if(x == -1) x = n - 1; } }; solve(); if((x + y) & 1) cout << "black\n"; else cout << "white\n"; }