import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int w = sc.nextInt(); int n = sc.nextInt(); char[] types = new char[n]; int[] idxes = new int[n]; for (int i = 0; i < n; i++) { types[i] = sc.next().charAt(0); idxes[i] = sc.nextInt(); } int r = 0; int c = 0; for (int i = n - 1; i >= 0; i--) { if (types[i] == 'R') { 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"); } } }