As a punishment for his conduct during geometry lessons — Alex did nothing while the rest of his class computed the areas of various figures — his geometry teacher gave him a tedious homework assignment.
Alex now has to compute the areas of several ellipses drawn on a sheet of paper torn from a textbook. The sheet has a rectangular grid on it, so the coordinates of points can be read off. Even then, finding the area of an ellipse can be quite involved, especially when the axes of the ellipse are neither vertical nor horizontal.
Being very lazy, Alex wants you to write a program that determines the area of an ellipse from the coordinates of five distinct points lying on it. He will then type in these five points for each ellipse and compute every area this way.
The first line contains the number of ellipses k (1≤k≤1000). Each of the next k lines contains the coordinates of five points lying on the corresponding ellipse, given as x1 y1 x2 y2 … x5 y5. All coordinates are integers whose absolute values do not exceed 1000.
For each ellipse, print one line, for a total of k lines. Print IMPOSSIBLE if the area cannot be determined (there is no ellipse passing through all five given points, or there is more than one such ellipse); otherwise print the area of the ellipse precise to six digits after the decimal point. Whenever such an ellipse exists, it always fits completely inside the textbook page, i.e. every point (x,y) of the ellipse satisfies ∣x∣≤1000 and ∣y∣≤1000.