1. 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}=1$, $x^{2}+y^{2}=9$, $x^{2}+y^{2}=16$. 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. To write the number $\pi$, use the Russian letter п or the English $\mathrm{p}$.

Examples of writing the answer:

$3 \mathrm{p}+10$

$1.5 \pi+7.5$

Answer: 5 p +23 || $23+5$ p || 5 п +23 || $23+5$ п || $5^{*}$ p +23 || $23+5^{*}$ p || $5^{*}$ п +23 || $23+5^{*}$ п || $\mathrm{p}^{*} 5+23 \mid$ $\pi^{*} 5+23$