Circle $o$ contains the circles $m$ , $p$ and $r$, such that they are tangent to $o$ internally and any two of them are tangent between themselves. The radii of the circles $m$ and $p$ are equal to $x$ . The circle $r$ has radius $1$ and passes through the center of the circle $o$. Find the value of $x$ .