read*,n;do i=1,n;read*,k,k;print'("Case #"i0": "a5)W',i,"HITEBLACK"(and(k,1)*5:);enddo;end