# Circum Triangle

You will be given N distinct points on the boundary of a circle whose center is at the origin. As the points are on the same circle no three of them are collinear, so any three of them creates a valid triangle. Your job is to find the summation of areas of these nc3 triangles. Input Input file contains at most 16 sets of inputs. The description of each set is given below: EachsetstartswithtwointegersN(0≤N≤500)andR(0<R≤100). HereNisthe number of points and R is the radius of the circle. You can assume that the center of the circle is always at the origin. This line is followed by N lines each of which contains a floating-point number θ (0.0 ≤ θ < 360.00) which actually denotes the angle in degree the designated point creates with respect to the origin with x-axis. So for example if θ is 30.00 degree then the Cartesian coordinate of the intended point is R ∗ cos(30.00o) and R ∗ sin(30.00o). Assume that π = 2 cos−1(0). Input is terminated by a set where the value of N and R is zero. This set should not be processed. Output For each line of input produce one line of output. This line contains an integer number which is the total area (rounded to nearest integer) of all possible triangles formed by the given N points. The judge data will be such that small precision errors will not cause the output to be different. Consider at least double-precision floating numbers to do your calculations. Sample Input 5 10 10.00 100.00 300.00 310.00 320.00 3 20 10.00 100.00 300.00 00 Sample Output 286 320