H,W=[int(i) for i in input().split()] N=int(input()) sousas=[] for i in range(N): sousa=input().split() sousas.append(sousa) #init black=[[False for i in range(W)] for j in range(H)] for i in range(H): offset=(i+1)%2 for j in range(offset,W,2): black[i][j]=True now_pos=[0,0] for sousa in reversed(sousas): if sousa[0]=='R': row=int(sousa[1]) if now_pos[0]==row: if now_pos[1]==0: now_pos=[now_pos[0],W-1] else: now_pos=[now_pos[0],now_pos[1]-1] else: col=int(sousa[1]) if now_pos[1]==col: if now_pos[0]==0: now_pos=[H-1,now_pos[1]] else: now_pos=[now_pos[0]-1,now_pos[1]] # for i in range(H): # print(black[i]) # print('\n') ans='black' if black[now_pos[0]][now_pos[1]]==True else 'white' print(ans)