
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
Thirty girls - 13 in red dresses and 17 in blue dresses - were dancing in a circle around a Christmas tree. Afterwards, each of them was asked if her neighbor to the right was in a blue dress. It turned out that only those girls who stood between girls in dresses of the same color answered correctly. How many girls could have answered affirmatively?

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