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


public class C {

	void run()throws Exception{
		in = new BufferedReader(new InputStreamReader(System.in));
		st = new StringTokenizer("");

		Point A = new Point(readDouble(), readDouble());
		Point B = new Point(readDouble(), readDouble());
		Point C = new Point(readDouble(), readDouble());

		double a = B.distance(C);
		double b = A.distance(C);
		double c = B.distance(A);

		double p = (a+b+c)/2;
		double S = Math.sqrt(p*(p-a)*(p-b)*(p-c));

		/*
		if (eq(a,b) && eq(a,c)){
			System.out.println(S);
			return;
		}
		*/

		R = a*b*c/(4*S);

		double tt1, tt2, tt3;
		tt1 = 1.0 - a*a/(2*R*R);if (tt1<-1.0) tt1 = -1.0; else if (tt1>1.0) tt1 = 1.0;
		tt2 = 1.0 - b*b/(2*R*R);if (tt2<-1.0) tt2 = -1.0; else if (tt2>1.0) tt2 = 1.0;
		tt3 = 1.0 - c*c/(2*R*R);if (tt3<-1.0) tt3 = -1.0; else if (tt3>1.0) tt3 = 1.0;
		double aa = Math.acos(tt1);
		double bb = Math.acos(tt2);
		double cc = Math.acos(tt3);

		int n = 3;
		double d = 0.00001;
		for (; n<100;++n){
			double alpha = Math.PI*2.0/n;
			int q = (int)(n*aa / (Math.PI*2.0) + d);
			int w = (int)(n*bb / (Math.PI*2.0) + d);
			int e = (int)(n*cc / (Math.PI*2.0) + d);
//			System.out.println(q+" "+w+" "+e);
//			System.out.println((q*alpha)+" "+(w*alpha)+" "+(e*alpha));
//			System.out.println(aa+" "+bb+" "+cc);
//			SS(n);
//			System.out.println();
			if (!eq(q*alpha, aa) || !eq(w*alpha, bb) || !eq(e*alpha, cc)) continue;
			//if (q+w+e == n) break;
			break;
		}
		SS(n);
	}

	void SS(int n){
		double p, S;
		double alpha = Math.PI*2.0/n;
		S = n * R*R*Math.sin(alpha) / 2.0;
		System.out.println(S);
	}

	double R;

	boolean eq(double a, double b){
		return Math.abs(a-b) < 0.000001;
	}

	class Point{
		double x,y;
		public Point(){x=y=0;}
		public Point(double a, double b){x=a;y=b;}
		public double distance(Point C){
			return Math.sqrt((x-C.x)*(x-C.x) + (y-C.y)*(y-C.y));
		}
		void rotate(double alpha){
			double al = Math.atan2(y, x);
			double len = distance(new Point());
			al += alpha;
			x = len*Math.cos(al);
			y = len*Math.sin(al);
		}
	}

	public static void main(String args[])throws Exception{
		new C().run();
	}

	BufferedReader in;
	StringTokenizer st;

	int readInt()throws Exception{
		if (!st.hasMoreTokens())st = new StringTokenizer(in.readLine());
		return Integer.parseInt(st.nextToken());
	}

	double readDouble()throws Exception{
		if (!st.hasMoreTokens())st = new StringTokenizer(in.readLine());
		return Double.parseDouble(st.nextToken());
	}

}