
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 pile of balls, consisting of red and yellow colors, has 49 red balls among the first 50 balls counted. After that, for every 8 balls counted, there are 7 red balls, continuing until the last 8 balls are exactly counted. If the red balls in the counted balls are not less than 90%, what is the maximum number of balls in the pile?

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