var a,i:word;begin readln;repeat inc(i);read(a,a);writeln("Case #",i,copy(": WHITE: BLACK",1and a*7+1,7))until 1=0end.