2. A spider has woven a web that consists of the x-axis, the y-axis, as well as the following curves: $y=x$, $y=-x$, $x^{2}+y^{2}=4$, $x^{2}+y^{2}=25$, $x^{2}+y^{2}=49$. In one day, flies got caught in all the nodes. The spider is sitting at the point $(0,0)$ and plans to eat all the flies. What is the minimum distance the spider will travel before it finishes eating?
Do not round the answer. For writing the number $\pi$, use the Russian letter п or the English letter r.

Examples of writing the answer:

$3 \mathrm{p}+10$

$1.5 \pi+7.5$

Answer: 9 p +39 || $39+9$ p || 9 п +39 || $39+9$ п || $9^{*}$ p +39 || $39+9^{*}$ p || $9^{*}$ п +39 || $39+9^{*}$ п $\| \mathbf{p}^{*} 9+39$ $\pi^{*} 9+39$