
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
On the side $BC$ of an acute-angled triangle $ABC$ ($AB \neq AC$), a semicircle is constructed with $BC$ as its diameter. The semicircle intersects the altitude $AD$ at point $M$. Given $AD = a$, $MD = b$, and $H$ is the orthocenter of the triangle $ABC$, find $AH$.

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