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.*;
import java.io.*;

public class CF1C {

	private static double eps = 1e-4;

	private static double getDistance(double X0, double Y0, double X1, double Y1) {
		return Math.sqrt((X1 - X0) * (X1 - X0) + (Y1 - Y0) * (Y1 - Y0));
	}

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		double X[] = new double[3];
		double Y[] = new double[3];

		String[] str = br.readLine().split(" ");
		X[0] = Double.parseDouble(str[0]);
		Y[0] = Double.parseDouble(str[1]);

		str = br.readLine().split(" ");
		X[1] = Double.parseDouble(str[0]);
		Y[1] = Double.parseDouble(str[1]);

		str = br.readLine().split(" ");
		X[2] = Double.parseDouble(str[0]);
		Y[2] = Double.parseDouble(str[1]);

		double mid1[] = new double[2];
		double mid2[] = new double[2];
		mid1[0] = (X[0] + X[1]) / 2.0;
		mid1[1] = (Y[0] + Y[1]) / 2.0;
		mid2[0] = (X[1] + X[2]) / 2.0;
		mid2[1] = (Y[1] + Y[2]) / 2.0;

		double x, y, grad1, grad2;

		if (Y[0] == Y[1]) {
			x = mid1[0];
			grad2 = (X[2] - X[1]) / (Y[1] - Y[2]);
			y = grad2 * (x - mid2[0]) + mid2[1];
		} else if (Y[1] == Y[2]) {
			x = mid2[0];
			grad1 = (X[1] - X[0]) / (Y[0] - Y[1]);
			y = grad1 * (x - mid1[0]) + mid1[1];
		} else {
			grad1 = (X[1] - X[0]) / (Y[0] - Y[1]);
			grad2 = (X[2] - X[1]) / (Y[1] - Y[2]);
			x = (mid2[1] - mid1[1] + grad1 * mid1[0] - grad2 * mid2[0])
					/ (grad1 - grad2);
			y = grad1 * (x - mid1[0]) + mid1[1];
		}

		double outerRad = getDistance(x, y, X[0], Y[0]);

		double angle[] = new double[3];
		angle[0] = Math.atan2(Y[0] - y, X[0] - x);
		angle[1] = Math.atan2(Y[1] - y, X[1] - x);
		angle[2] = Math.atan2(Y[2] - y, X[2] - x);

		int sideCount = 3;
		while (true) {
			double sinAngle1 = sideCount * (angle[0] - angle[1]) / 2.0;
			double sinAngle2 = sideCount * (angle[1] - angle[2]) / 2.0;
			double sinAngle3 = sideCount * (angle[2] - angle[0]) / 2.0;
			if (Math.abs(Math.sin(sinAngle1)) < eps
					&& Math.abs(Math.sin(sinAngle2)) < eps
					&& Math.abs(Math.sin(sinAngle3)) < eps) {
				break;
			}
			sideCount++;
		}
		
		double areaAngle = (2 * Math.PI) / sideCount;
		double area = (sideCount * outerRad * outerRad * Math.sin(areaAngle)) / 2.0;
		System.out.println(String.format("%.8f", area));
	}
}