Problem: Nowadays all circuses in Berland have a round arena with diameter 13 meters, but in the past things were different.

In Ancient Berland arenas in circuses were shaped as a regular (equiangular) polygon, the size and the number of angles could vary from one circus to another. In each corner of the arena there was a special pillar, and the rope strung between the pillars marked the arena edges.

Recently the scientists from Berland have discovered the remains of the ancient circus arena. They found only three pillars, the others were destroyed by the time.

You are given the coordinates of these three pillars. Find out what is the smallest area that the arena could have.

Input

The input file consists of three lines, each of them contains a pair of numbers –– coordinates of the pillar. Any coordinate doesn't exceed 1000 by absolute value, and is given with at most six digits after decimal point.

Output

Output the smallest possible area of the ancient arena. This number should be accurate to at least 6 digits after the decimal point. It's guaranteed that the number of angles in the optimal polygon is not larger than 100.

Examples

Input

0.000000 0.000000
1.000000 1.000000
0.000000 1.000000


Output

1.00000000

Solution (in JAVA):

Solution:
import java.util.Scanner;

public class AncientBerlandCircus_1C {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double[] pointA = new double[] { sc.nextDouble(), sc.nextDouble() };
		double[] pointB = new double[] { sc.nextDouble(), sc.nextDouble() };
		double[] pointC = new double[] { sc.nextDouble(), sc.nextDouble() };

		// Check if its an equilateral triangle.
		double distAB = Math.hypot(pointA[0] - pointB[0], pointA[1] - pointB[1]);
		double distBC = Math.hypot(pointB[0] - pointC[0], pointB[1] - pointC[1]);
		double distCA = Math.hypot(pointC[0] - pointA[0], pointC[1] - pointA[1]);

		if (distAB == distBC && distBC == distCA) {
			//Triangle!
			System.out.println("Triangle");
			double s = (distAB + distBC + distCA) / 2.0;
			double area = Math.sqrt(s * (s - distAB) * (s - distBC) * (s - distCA));
			System.out.printf("%.6f", area);
			return;
		} else {
			// Must be a regular n-gon now.

			// Lets check if its a rectangle first.
			double slopeAB = Math.abs(pointA[1] - pointB[1]) / (Math.abs(pointA[0] - pointB[0]) * 1.0);
			double slopeBC = Math.abs(pointB[1] - pointC[1]) / (Math.abs(pointB[0] - pointC[0]) * 1.0);
			double slopeCA = Math.abs(pointC[1] - pointA[1]) / (Math.abs(pointC[0] - pointA[0]) * 1.0);

			if (slopeAB * slopeBC == -1) {
				System.out.printf("%.6f", distAB * distBC);
				return;
			} else if (slopeBC * slopeCA == -1) {
				System.out.printf("%.8f", distBC * distCA);
				return;
			} else if (slopeCA * slopeAB == -1) {
				System.out.printf("%.8f", distCA * distAB);
				return;
			}

			// Now deal with all other shapes.
			double angA = 2 * angle(distBC, distCA, distAB), angB = 2 * angle(distAB, distCA, distBC), angC = 2 * angle(distAB, distBC, distCA);
			int n = -1;

			double currentAngle, delta = 0.001, CangA, CangB, CangC;
			{
				int i = 3;
				while (n == -1) {
					currentAngle = 2 * Math.PI / i;
					CangA = angA / currentAngle;
					CangB = angB / currentAngle;
					CangC = angC / currentAngle;

					if (Math.abs(CangA - Math.round(CangA)) < delta && Math.abs(CangB - Math.round(CangB)) < delta && Math.abs(CangC - Math.round(CangC)) < delta)
						n = i;

					i++;
				}
			}

			double R = Math.sqrt((distAB * distAB) / (2 - 2 * Math.cos(angA)));
			double s = (n * R * R * Math.sin(2 * Math.PI / n)) / 2;
			System.out.printf("%.8f", s);
			return;
		}
	}

	static double angle(double a, double b, double c) {
		// As per law of cosines
		return Math.acos((a * a + b * b - c * c) / (2 * a * b));
	}
}