Welcome To My Religion.

Internet Angel descends! She is aimed at saving us, humans. The people waiting to be redeemed are enclosed in what can be seen as a convex polygon of nnn vertices on a 2D plane. This convex polygon is somehow special: there exists a circle with its center at (0,0)(0,0)(0,0) that is tangent to every side of the polygon. We denote the circle by Circle A\texttt{Circle A}Circle A.
Angle Chan does not descend directly into the crowd but additionally draws a large circle with the center at (0,0)(0,0)(0,0) that can surround the whole crowd. We denote the circle by Circle B\texttt{Circle B}Circle B. Next, she will choose a location between the circle and the crowd uniformly randomly, and then for all the tangent points of each side of the polygon, she will choose a point nearest to her and follow the shortest path to the crowd.
For convenience, when inputting this convex polygon we input Circle A\texttt{Circle A}Circle A and nnn angles indicating the position of the tangent point of each side of the polygon on Circle A\texttt{Circle A}Circle A. You can check the input format and the sample to get a better understanding.
Now, Angle Chan wants to know what is the expectation of the squared distance of this shortest path.