def main():
    H, W = map(int, input().split())
    if H == W == 1:
        print('white')
        return
    N = int(input())
    S = [(i, int(j)) for i, j in (input().split() for _ in [0] * N)]


    if W == 1:
        even = 0
        odd = 1
    else:
        n = W // 2
        if W % 2:
            even = int('01' * n + '0', 2)
            odd = int('10' * n + '1', 2)
        else:
            even = int('01' * n, 2)
            odd = int('10' * n, 2)
    S.reverse()
    col, row = 0, 0
    for n in S:
        if n == ('R', row):
            col = col - 1 if col > 0 else W - 1
        elif n == ('C', col):
            row = row - 1 if row > 0 else H - 1
    n = W - 1 - col
    if row % 2:
        i = odd & (2 ** n)
    else:
        i = even & (2 ** n)
    i = 1 if i else 0
    color = ('white', 'black')
    print(color[i])

main()