
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 his birthday, the last guest to arrive was Yana, who gave Andrey a ball, and the second last was Eduard, who gave him a calculator. While using the calculator, Andrey noticed that the product of the total number of gifts he received and the number of gifts he had before Eduard arrived is exactly 16 more than the product of his age and the number of gifts he had before Yana arrived. How many gifts does Andrey have?

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