
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
On Valentine's Day, each boy in the school gave a valentine to each girl in the school. It was found that the number of valentines was 40 more than the total number of students. How many valentines were given?

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