You are given a convex polygon. What is the probability that choosing any three vertices, plus any point inside the polygon, the four points do not form a convex quadrilateral?
Input consists of several cases. Every case begins with the number of points , followed by pairs of coordinates in clockwise or anticlockwise order. Assume , and that the coordinates are real numbers between and with at most two digits after the decimal point.
For every case, print the asked probability with four digits after the decimal point. The input cases have no precission issues.
Input
3 2 0 3 1 4 0 4 0 0 0 10 10 10 10 0 5 7.2 -5.3 4.5 5.9 -1.2 6.3 -5.0 0 0 -8
Output
1.0000 0.5000 0.3609