
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
In a certain city, there are \( n \) middle schools. The \( i \)-th middle school sends \( C_{i} \) students \(\left(1 \leqslant C_{i} \leqslant 39, 1 \leqslant i \leqslant n\right)\) to the gymnasium to watch a basketball game. The total number of students is \(\sum_{i=1}^{n} C_{i} = 1990\). Each row of seats in the grandstand has 199 seats. It is required that students from the same school must sit in the same row. What is the minimum number of rows needed to ensure that all students can be seated?

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