Fixed output when one sequence is for input