three bit number detection.