#include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int n,h,w,k,a = 0,b = 0; char c; cin >> h >> w; cin >> n; for(int i = 0; i < n; i++) { cin >> c >> k; if (c == 'R') { b = (b + 1) % w; } else { a = (a + 1) % h; } } if ((a * w + b) % 2 == 0) { cout << "white" << "\n"; } else { cout << "black" << "\n"; } return 0; }