import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int H = scan.nextInt(); int W = scan.nextInt(); int N = scan.nextInt(); String []S = new String[N]; int []K = new int[N]; for(int i = 0; i < N; i++) { S[i] = scan.next(); K[i] = Integer.parseInt(scan.next()); } scan.close(); int r = 0; int c = 0; for(int i = N - 1; i >= 0; i--) { if(S[i].equals("R") && r == K[i]) { if(c == 0) { c = W - 1; }else { c = c - 1; } }else if(S[i].equals("C") && c == K[i]) { if(r == 0) { r = H - 1; }else { r = r - 1; } } } if((r + c) % 2 == 0) { System.out.println("white"); }else { System.out.println("black"); } } }