
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
A finite sequence of numbers satisfies the following conditions: the sum of any 2017 consecutive terms is negative, and the sum of any 2018 consecutive terms is positive. Let the maximum number of terms in this sequence be \( M \), and the maximum number of positive terms in this sequence be \( m \). Find the value of \( M + m \).

Present the answer in LaTex format: \boxed{Your answer}
user