
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
Philatelist Andrei decided to distribute all his stamps evenly into 3 envelopes, but found that one stamp was left over. When he distributed them evenly into 5 envelopes, 3 stamps were left over; finally, when he distributed them evenly into 7 envelopes, 5 stamps were left over. How many stamps does Andrei have in total?

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