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:
/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.awt.geom.Point2D;

/* Name of the class has to be "Main" only if the class is public. */
public class arena
{
    public static double greatestCommonDenom(double x, double y) {
        
        if (y < Math.PI/100.0) {
            return x;
        } 
        
        else {
            return greatestCommonDenom(y, x%y);
        }
    }
    
    public static double getLength(Point2D.Double one, Point2D.Double two){
        
        return Point2D.distance(one.x, one.y, two.x, two.y);
    }
    
    public static double getAngle(double one, double two, double three){
        return Math.acos((two*two + three*three - one*one)/(2 * two * three));
    }
    
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner in = new Scanner(System.in);
		double x1, x2, x3, y1, y2, y3;
		x1 = in.nextDouble();
		y1 = in.nextDouble();
		x2 = in.nextDouble();
		y2 = in.nextDouble();
		x3 = in.nextDouble();
		y3 = in.nextDouble();
		Point2D.Double pointA = new Point2D.Double(x1,y1);
		Point2D.Double pointB = new Point2D.Double(x2,y2);
		Point2D.Double pointC = new Point2D.Double(x3,y3);
		
		double lengthAB, lengthBC, lengthCA, angleA, angleB, angleC;
		lengthAB = getLength(pointA, pointB);
		lengthBC = getLength(pointB, pointC);
		lengthCA = getLength(pointC, pointA);
		
		angleA = getAngle(lengthAB, lengthBC, lengthCA);
		angleB = getAngle(lengthBC, lengthAB, lengthCA);
		angleC = getAngle(lengthCA, lengthAB, lengthBC);
		
		double radius, area, n;
		
		radius = lengthAB / Math.sin(angleA)/2;
		n = Math.PI / greatestCommonDenom(angleA, greatestCommonDenom(angleB,angleC));
		area = n/2*radius*radius*Math.sin(2*Math.PI/n);
		
		System.out.println(area);
		
	}
}