9.5. What is the maximum number of integers that can be written in a row so that the sum of any five consecutive ones is greater than zero, and the sum of any seven consecutive ones is less than zero?