Rikka places n points on a two-dimensional Cartesian coordinate system. The coordinate of the point is
. She wants to choose three points to make a weapon, and then she will use it to fight against the administration of "invisible boundaries".
To make this weapon more powerful, Rikka restricts the shape of the triangle to acute triangles. There may be several legal plans to make the weapon. Rikka wants you to calculate the sum of the areas of the triangles among all these plans.
Two plans are considered different if and only if they differ in at least one point.
NOTE: You can use __int128 in your program.
The first line contains a single integer
, the number of the test cases.
For each test case, the first line contain a single integer
, the number of the points. And then n lines follow, each line contains two integers
and
![]()
, the coordinates of a point. The input guarantees that no two points are identical.
Letbe the sum of the areas, it can be proved that
is an integer.
Since the answer may be very large, you only need to outputmodulo
(a prime number).