
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
Petya wrote a sequence of \( n \) consecutive two-digit numbers on the board (\( n \geq 2 \)), the first of which does not contain the digit 4, and the last of which does not contain the digit 7. Vasya assumed that this was the decimal representation of a natural number \( x \) and factored \( x \) into prime factors. It turned out that there were exactly two prime factors and they differed by 4. What is written on the board?

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