
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
Ladies and gentlemen came to the ball, with a total of fewer than 50 people. During the first dance, only a quarter of the ladies were not invited to dance, and 2/7 of the total number of gentlemen did not invite anyone. How many people attended the ball? (For the dance, a certain gentleman invites a certain lady.)

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