CNOTE: Is subtask one contain all the conditions?

My code solve 3 of subtask two but it fail on subtask one.Did subtask one contains all conditions?