
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
Jiřina has a four-digit number written on a piece of paper. When she swaps the digits in the hundreds and units places and adds this new number to the original number, the result is 3332. If she instead swaps the digits in the thousands and tens places and adds this new number to the original number, the result is 7886. Determine the number Jiřina had written on the paper.

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