
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
At a gathering, there are 25 dwarves and 18 elves. The elves, having a strict code, do not shake hands with each other but will shake hands with every dwarf. The dwarves, being very sociable, shake hands with all other dwarves as well as with all the elves. Calculate the total number of handshakes at this gathering.

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