H, W = map(int, input().split()) N = int(input()) Q = [] for _ in range(N): S, K = input().split() K = int(K) Q.append((S, K)) cur_x, cur_y = 0, 0 for s, k in reversed(Q): if s == 'R': if cur_x == k: cur_y = (cur_y - 1) % W else: if cur_y == k: cur_x = (cur_x - 1) % H print('black' if (cur_x + cur_y) % 2 else 'white')