import java.util.Scanner; public class Test { public static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int h = sc.nextInt(), w = sc.nextInt(), n = sc.nextInt(); int x = 0, y = 0; int[] m = new int[n]; char[] c = new char[n]; for(int i = 0; i < n; i++){ c[i] = sc.next().charAt(0); m[i] = sc.nextInt(); } for(int i = n-1; i >= 0; i--){ if(y == m[i] && c[i] == 'R'){ x--; if(x < 0){ x += w; } } else if(x == m[i] && c[i] == 'C'){ y--; if(y < 0){ y += h; } } } if((x + y) % 2 == 0){ System.out.println("white"); } else { System.out.println("black"); } } }