
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
The circus bought some red balloons, yellow balloons, and blue balloons to decorate the circular stage. They tied a red balloon at regular intervals, using up all 40 red balloons they bought. Then they tied a yellow balloon at equal intervals between every two adjacent red balloons, falling short by 3 yellow balloons. Finally, they tied a blue balloon between every two adjacent balloons, using up all the blue balloons they bought. How many yellow balloons and blue balloons did the circus buy?

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