import java.util.*; import java.io.*; public class Main { public static void main (String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] first = br.readLine().split(" ", 2); int h = Integer.parseInt(first[0]); int w = Integer.parseInt(first[0]); int n = Integer.parseInt(br.readLine()); boolean[] isR = new boolean[n]; int[] idxes = new int[n]; for (int i = 0; i < n; i++) { String line = br.readLine(); isR[i] = line.charAt(0) == 'R'; idxes[i] = Integer.parseInt(line.substring(2, line.length())); } int r = 0; int c = 0; for (int i = n - 1; i >= 0; i--) { if (isR[i]) { if (idxes[i] == r) { c = (c + w - 1) % w; } } else { if (idxes[i] == c) { r = (r + h - 1) % h; } } } if (c % 2 == 0 ^ r % 2 == 0) { System.out.println("black"); } else { System.out.println("white"); } } }