
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
Monika is thinking of a four-digit number that has the following properties:

- The product of the two outer digits is 40,
- The product of the two inner digits is 18,
- The difference between the two outer digits is the same as the difference between the two inner digits,
- The difference between the thought number and the number written in reverse order (i.e., the number with the same digits but in reverse order) is the largest possible.

Determine the number Monika is thinking of.

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