You are given n distinct points on the boundary of a circle with radius r 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 triangles.
Contains at most 16 tests. Each test starts with two integers n(0≤n≤500) and r(0<r≤100). Here n is the 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.00°),r⋅sin(30.00°)). The last line contains n=r=0 and is not processed.
For each test case print one line. This line contains an integer which is the total area (rounded to the nearest integer) of all possible triangles formed by the given n points.