SAMPLE INPUT SEGMENT, DETECTOR