def main(): H, W = map(int, input().split()) N = int(input()) R = range(N) H, W = H-1, W-1 S = [] K = [] c = 0 while c0: c -= 1 if S[c] == 'C': if K[c] == x: y += -1 if y else H else: if K[c] == y: x += -1 if x else W print('black' if (y+x)%2 else 'white') if __name__ == '__main__': main()