In triangle , . The altitude is drawn, then a point is selected on it. Let be the foot of the perpendicular of from . intersects at (both extended if necessary).
Given that , find the value of .
This problem is part of the set Advent Calendar 2014.