[ Diameter, main properties ]  [ Signs and properties of the tangent ]

A circle passes through the midpoints of the hypotenuse $A B$ and the leg $B C$ of a right triangle $A B C$ and is tangent to the leg $A C$. In what ratio does the point of tangency divide the leg $A C$.