
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
Petya told Misha that exactly two-thirds of all the girls in his class are blondes, exactly one-seventh of the boys are blondes, and a total of one-third of the class has light hair. Misha said, "You once told me that there are no more than 40 people in your class. I know how many girls are in your class!" How many?

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