#!/usr/bin/env python
#coding:utf8


def read():
    row, col = map(int, raw_input().split())
    rcIdxList = []
    for i in range(input()):
        rc, idx = raw_input().split()
        rcIdxList.append((rc, int(idx)))
    return row, col, rcIdxList


def work((row, col, rcIdxList)):
    r, c = 0, 0
    for (rc, idx) in rcIdxList[::-1]:
        if rc == "R" and r == idx:
            c = (c + col - 1) % col
        elif rc == "C" and c == idx:
            r = (r + row - 1) % row

    print "white" if (r + c) % 2 == 0 else "black"


if __name__ == "__main__":
    work(read())