In an acute-angled triangle , the altitudes , , and intersect at point . From point , perpendiculars are drawn to the lines and , which intersect the rays and at points and respectively. Prove that the perpendicular dropped from point to the line passes through the midpoint of segment .