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

vertices on a 2D plane. This convex polygon is somehow special: there exists a circle with its center at
)
that is tangent to every side of the polygon. We denote the circle by

.
Angle Chan does not descend directly into the crowd but additionally draws a large circle with the center at
)
that can surround the whole crowd. We denote the circle by

. 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

and

angles indicating the position of the tangent point of each side of the polygon on

. 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.