import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines H,W = map(int,readline().split()) N = int(readline()) SK = readlines() x,y = 0,0 for line in SK[::-1]: s,k = line.split() k = int(k) if s == b'R': if k != x: continue y -= 1 if y == -1: y += W else: if k != y: continue x -= 1 if x == -1: x += H answer = 'black' if (x^y)&1 else 'white' print(answer)