Yukikaze wants to know the area of the intersection of the halfplanes at some given time points.
The first line of the input contains a single integer(
).
The-th of the next
lines contains two integers
and
(
), denoting the
-th vertex of the initial convex hull. The
-th halfplane is described by a directed line pointing from
to
. The points are given in counter-clockwise order. It's guaranteed that the given points form a convex hull, and any three points are not collinear.
The next line of the input contains a single integer(
), denoting the number of time points.
Each of the next
lines contains a single real number
(
), denoting that Yukikaze wants to know the area of the intersection at
second after the contraction begins. Each real number in the input has at most three digits after the decimal point.
For each given time point, output the answer in a single line.Your answer is considered correct if its absolute or relative error does not exceed.
Formally, let your answer be
, and the jury's answer be
. Your answer is accepted if and only if
.