
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
Using the digits 1, 2, 3, 4, and 5, form distinct five-digit numbers without repeating any digit and ensuring that the digit 4 doesn't appear in either the first or last position. Additionally, among the digits 1, 3, and 5, exactly two must be adjacent to each other. Determine the total number of different five-digit numbers that meet these conditions.

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