Convex Hull

아직 제출이 없습니다시간 제한1.5초메모리 제한256 MB

문제

There are nn points in three-dimensional space. Consider the convex hull of these nn points.

You are given qq queries. Each query defines a plane in three-dimensional space. For each given plane, find the area of section of the convex hull produced by this plane.

입력

The first line of input contains two integers nn and qq, the number of points and the number of queries (1n,q10001 \le n, q \le 1000).

Each of the next nn lines contains three integers xx, yy and zz: the coordinates of one of the points.

The next qq lines describe queries. Each of them contains four integers aa, bb, cc and dd which specify the plane given by the equation ax+by+cz+d=0a x + b y + c z + d = 0.

It is guaranteed that the absolute values of xx, yy, zz, aa, bb, cc and dd are not greater than 20002000.

출력

For each query, print the answer with absolute error at most 10310^{-3}.