
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
For a positive integer \( n \), let the sum of its digits be denoted as \( s(n) \), and the product of its digits be denoted as \( p(n) \). If \( s(n) + p(n) = n \) holds true, then \( n \) is called a "magic number." Find the sum of all magic numbers.

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