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.text.DecimalFormat;
import java.util.Scanner;

public class Main {
	public static double mod(double a,double b) {
		int i;
		//System.out.println("dewfd");
		for( i=0;(i+1)*b<=a;i++);
		return a-i*b;
	}
	public static double gcd(double a,double b) {
		//System.out.println(a+"  "+b);
		if(b<0.0001&&b>-0.0001)return a;
		else return gcd(b, mod(a, b));
	}
	public static void main(String[] args)  {
		Scanner cin = new Scanner(System.in);
		double [] x = new double [3];
		double [] y = new double [3];
		for(int i=0;i<3;i++)
		{
			x[i]=cin.nextDouble();
			y[i]=cin.nextDouble();
		}
		double [] dis = new double [3];
		double p = 0;
		for(int i=0;i<3;i++)
		{
			dis[i]=Math.sqrt((x[i]-x[(i+1)%3])*(x[i]-x[(i+1)%3])+(y[i]-y[(i+1)%3])*(y[i]-y[(i+1)%3]));
			p+=dis[i];
			//System.out.println(dis[i]);
		}
		p/=2;
		double s=Math.sqrt(p*(p-dis[0])*(p-dis[1])*(p-dis[2]));
		double r=dis[0]*dis[1]*dis[2]/(4*s);
		//System.out.println(s+" "+r);
		double ang1=Math.acos((r*r+r*r-dis[0]*dis[0])/(2*r*r));
		double ang2=Math.acos((r*r+r*r-dis[1]*dis[1])/(2*r*r));
		double ang3=Math.acos((r*r+r*r-dis[2]*dis[2])/(2*r*r));
		if(Double.isNaN(ang2))
		{
			ang2=2*Math.acos(-1.0)-ang3-ang1;
		}
		//if(Double.isNaN(ang3))
		{
			//System.out.println("frf");
			ang3=2*Math.acos(-1.0)-ang1-ang2;
		}
		
		//System.out.println(ang1+" "+ang2+" "+ang3);
		double ang=gcd(ang1, gcd(ang2, ang3));
		double ans=0.5*r*r*Math.sin(ang)*(2*Math.acos(-1.0)/ang);  
		DecimalFormat format = new DecimalFormat("#.00000000");
		System.out.println(format.format(ans));
		cin.close();
	}
}