i=0;exec'i+=1;print"Case #%d:"%i,int(raw_input()[-1])%2*"BLACK"or"WHITE";'*input()