for n in range(input()):print'Case #%d: '%-~n+('WHITE','BLACK')[int(raw_input()[-1])&1]