In a right triangle, the point $O$ is the center of the circumcircle. Another circle of smaller radius centered at the point $O$ touches the larger leg and the altitude drawn from the top of the right angle. Find the acute angles of a right triangle and the ratio of the radii of the circumscribed and smaller circles.