
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
The herdsman is located 4 miles north of a small river flowing due east, and 8 miles west and 7 miles north of his small house. Determine the shortest distance he can walk to take his horse to the river to drink water and then return home.

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