Two circles, which are tangent externally, are inside and internally tangent to a third circle of radius 1. A diameter of the third circle is a common tangent of the two circles with one point of tangency at its midpoint. What are the radii of the first two circles?