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 void main(String[] args) {
		// TODO Auto-generated method stub
		double[] angle={2.0943951023931953,1.5707963267948966,1.2566370614359172,1.0471975511965976,0.8975979010256552,0.7853981633974483,0.6981317007977318,0.6283185307179586,0.5711986642890533,0.5235987755982988,0.483321946706122,0.4487989505128276,0.41887902047863906,0.39269908169872414,0.36959913571644626,0.3490658503988659,0.3306939635357677,0.3141592653589793,0.2991993003418851,0.28559933214452665,0.2731819698773733,0.2617993877991494,0.25132741228718347,0.241660973353061,0.23271056693257727,0.2243994752564138,0.21666156231653746,0.20943951023931953,0.2026833970057931,0.19634954084936207,0.19039955476301776,0.18479956785822313,0.17951958020513104,0.17453292519943295,0.16981581911296179,0.16534698176788384,0.16110731556870733,0.15707963267948966,0.15324842212633139,0.14959965017094254,0.14612058853906015,0.14279966607226333,0.13962634015954636,0.13659098493868665,0.13368479376977843,0.1308996938995747,0.1282282715750936,0.12566370614359174,0.12319971190548208,0.1208304866765305,0.11855066617319975,0.11635528346628864,0.11423973285781065,0.1121997376282069,0.11023132117858923,0.10833078115826873,0.10649466622338281,0.10471975511965977,0.10300303782261616,0.10134169850289655,0.09973310011396169,0.09817477042468103,0.0966643893412244,0.09519977738150888,0.09377888518178487,0.09239978392911156,0.0910606566257911,0.08975979010256552,0.08849556770675474,0.08726646259971647,0.08607103160519981,0.08490790955648089,0.08377580409572781,0.08267349088394192,0.08159980918415047,0.08055365778435367,0.07953399123012135,0.07853981633974483,0.07757018897752575,0.07662421106316569,0.07570102779734442,0.07479982508547127,0.07391982714328925,0.07306029426953008,0.07222052077217915,0.07139983303613166,0.07059758772111895,0.06981317007977318,0.06904599238658886,0.06829549246934333,0.06756113233526437,0.06684239688488922,0.06613879270715355,0.06544984694978735,0.06477510625958337,0.0641141357875468,0.06346651825433926,0.0628318530717959};
		double[] x,y;
		double[][] a;
		x=new double[3];
		y=new double[3];
		a=new double[3][4];
		Scanner sc=new Scanner(System.in);
		for(int i=0;i<x.length;i++){
			x[i]=Double.parseDouble(sc.next());
			y[i]=Double.parseDouble(sc.next());
		}
		sc.close();
		//x^2+y^2+lx+my+n=0;
		for(int i=0;i<a.length;i++){
			a[i][0]=x[i];
			a[i][1]=y[i];
			a[i][2]=1;
			a[i][3]=-(x[i]*x[i]+y[i]*y[i]);
		}
		for(int i=0;i<a.length;i++){
			if(a[i][i]==0){
				double temp=0;
				boolean swap=false;
				for(int j=i;j<a.length;j++){
					if(a[j][i]!=0){
						for(int k=0;k<a[j].length;k++){
							temp=a[i][k];
							a[i][k]=a[j][k];
							a[j][k]=temp;
						}
						swap=true;
					}
					if(swap){
						break;
					}
				}
			}
			for(int j=0;j<a[i].length;j++){
				if(i!=j){
					a[i][j]/=a[i][i];
				}
			}
			a[i][i]=1;
			for(int j=0;j<a.length;j++){
				if(j!=i){
					double c=a[j][i];
					for(int k=0;k<a[j].length;k++){
						a[j][k]=a[j][k]-a[i][k]*c;
					}
				}
			}
		}
		double xc,yc,r;
		xc=-a[0][3]/2.0;
		yc=-a[1][3]/2.0;
		r=Math.sqrt(-(a[2][3]-xc*xc-yc*yc));
		double[] alpha, theta;
		alpha=new double[3];
		theta=new double[3];
		for(int i=0;i<a.length;i++){
			alpha[i]=Math.atan2(y[i]-yc,x[i]-xc);
		}
		for(int i=0;i<a.length;i++){
			theta[i]=alpha[(i+1)%3]-alpha[i];
		}
		for(int i=3;i<=100;i++){
			boolean isAngle=true;
			for(int j=0;j<theta.length;j++){
				double d_temp=theta[j]/angle[i-3];
				long l_temp=Math.round(d_temp);
				if(Math.abs(d_temp-l_temp)>0.0001){
					isAngle=false;
					break;
				}
			}
			if(isAngle){
				double a1=Math.sqrt(2*r*r-2*r*r*Math.cos(angle[i-3]));
				double area=(i*a1*a1)/(4*Math.tan(Math.PI/i));
				DecimalFormat df1 = new DecimalFormat("0.000000");
				System.out.println(df1.format(area));
				break;
			}
		}
	}
}