Circle through three points
Three points are given on the plane that do not lie on one line. Find the equation of the circle that passes through them. Print the solution in the form
and
Input
Each line contains six real numbers — the coordinates of three points , , .
Output
For each test case print the equation of a circle in two formats as given in a sample. The values of and in Equations 1 and 2 are to be printed with three decimal digits. If some of is zero, do not print the corresponding term. Plus and minus signs in the equations should be changed as needed to avoid multiple signs before a number. Plus, minus, and equal signs must be separated from the adjacent characters by a single space on each side. No other spaces are to appear in the equations. Print a single blank line after each equation pair. See output format in example.