import sys h,w=map(int,input().split()) n=int(input()) d=sys.stdin.read().splitlines() s=0 t=0 if h==w==1: print("white") else: for k in d[::-1]: if k == 'R ' + str(t): s= s-1 if s>0 else w-1 elif k=='R '+str(s): t= t-1 if t>0 else h-1 if (s%2==1 and t%2==0) or (s%2==0 and t%2==1): print("black") else: print("white")