#include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int H, W; cin >> H >> W; int N; cin >> N; char S[N]; int K[N]; for (int i=0; i> S[i] >> K[i]; int nx=0, ny=0; for (int i=N-1; i>=0; i--) { if (S[i]=='R' && K[i]==nx) { if (ny==0) ny = W-1; else ny -= 1; } else if (S[i]=='C' && K[i]==ny) { if (nx==0) nx = H-1; else nx -= 1; } } if ((nx+ny)%2==0) cout << "white" << endl; else cout << "black" << endl; }