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 Ancient_Berland_Circus {

	public static void main(String[] args)throws Exception {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter pw = new PrintWriter(System.out);
		
		double[] x = new double [3];
		double[] y = new double [3];
		for(int i=0;i<3;i++)
		{
		  String[] s = br.readLine().split(" ");
		  x[i]=Double.parseDouble(s[0]);
		  y[i]=Double.parseDouble(s[1]);
		}
		
		double a=0;
		double b=0;
		if(x[0]==x[1])
		{
			b=(x[0]*x[0]-x[1]*x[1]+y[0]*y[0]-y[1]*y[1])/(2*(y[0]-y[1]));
			a=(x[1]*x[1]-x[2]*x[2]+y[1]*y[1]-y[2]*y[2]-b*(2*(y[1]-y[2])))/(2*(x[1]-x[2]));
		}
	    if(y[0]==y[1])
		{
				a=(x[0]*x[0]-x[1]*x[1]+y[0]*y[0]-y[1]*y[1])/(2*(x[0]-x[1]));
				b=(x[1]*x[1]-x[2]*x[2]+y[1]*y[1]-y[2]*y[2]-a*(2*(x[1]-x[2])))/(2*(y[1]-y[2]));
		}
	    if(x[1]==x[2])
	    {
	    	b=(x[1]*x[1]-x[2]*x[2]+y[1]*y[1]-y[2]*y[2])/(2*(y[1]-y[2]));
			a=(x[0]*x[0]-x[1]*x[1]+y[0]*y[0]-y[1]*y[1]-b*(2*(y[0]-y[1])))/(2*(x[0]-x[1]));
	    }
	    if(y[1]==y[2])
	    {
	    	a=(x[1]*x[1]-x[2]*x[2]+y[1]*y[1]-y[2]*y[2])/(2*(x[1]-x[2]));
			b=(x[0]*x[0]-x[1]*x[1]+y[0]*y[0]-y[1]*y[1]-a*(2*(x[0]-x[1])))/(2*(y[0]-y[1]));
	    }
	    if(x[0]!=x[1] && y[0]!=y[1] && x[1]!=x[2] && y[1]!=y[2])
	    {
	    	double k1=x[1]*x[1]-x[2]*x[2]+y[1]*y[1]-y[2]*y[2];
	    	double k2=(x[1]-x[2])*(x[0]*x[0]-x[1]*x[1]+y[0]*y[0]-y[1]*y[1])/(x[0]-x[1]);
	    	double k3=2*(y[1]-y[2]);
	    	double k4=2*(y[0]-y[1])*(x[1]-x[2])/(x[0]-x[1]);
	    	b=(k1-k2)/(k3-k4);
	    	a=(x[1]*x[1]-x[2]*x[2]+y[1]*y[1]-y[2]*y[2]-b*(2*(y[1]-y[2])))/(2*(x[1]-x[2]));
	    }
	    double r = (double)Math.sqrt((x[0]-a)*(x[0]-a)+(y[0]-b)*(y[0]-b));
	    double r2 = (double)Math.sqrt((x[1]-a)*(x[1]-a)+(y[1]-b)*(y[1]-b));
	    double r3 = (double)Math.sqrt((x[2]-a)*(x[2]-a)+(y[2]-b)*(y[2]-b));
	    //pw.println(r);pw.println(r2);pw.println(r3);
	    
	    double [] angl = new double[2];
	    for(int i=0;i<2;i++)
	    {
	    	double d=(double)Math.sqrt((x[i]-x[i+1])*(x[i]-x[i+1])+(y[i]-y[i+1])*(y[i]-y[i+1]));
	    	//pw.println(d);
	    	//pw.println(r);
	    	angl[i]=(double) (Math.asin(d/2/r)*2);
	    }
	    
	    //pw.println(angl[1]);
	   double area =0;
	   int n =3;
	   while(area==0)
	   {
		   if(Math.pow((double)(angl[0]/(2*Math.PI/n))-Math.round(angl[0]/(2*Math.PI/n)),2)<=0.000001 && Math.pow((double)(angl[1]/(2*Math.PI/n))-Math.round(angl[1]/(2*Math.PI/n)),2)<=0.000001 )
			   area=(double)(0.5*Math.sin(2*Math.PI/n)*n*r*r);
		   //pw.println((angl[0]/(2*Math.PI/n))-Math.round(angl[0]/(2*Math.PI/n)));
		   n=n+1;
	   }
	   
	    pw.println(area);
	   // pw.println(angl[1]);
		pw.close();
	}

}