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.util.Scanner;
import java.util.Locale;
public class Archive1C {

    public static void main(String[] args){
        Locale.setDefault(new Locale("en", "US"));
        Scanner sc = new Scanner(System.in);
        double a,b,c,n,p,r,s,x,y,F,A,B,C;
        Point p1,p2,p3,pm;

        x = sc.nextDouble();
        y = sc.nextDouble();
        p1 = new Point(x,y);
        x = sc.nextDouble();
        y = sc.nextDouble();
        p2 = new Point(x,y);
        x = sc.nextDouble();
        y = sc.nextDouble();
        p3 = new Point(x,y);

        a = dist(p1,p2);
        b = dist(p1,p3);
        c = dist(p2,p3);

        p = (a+b+c)/2;
        s = Math.sqrt(p*(p-a)*(p-b)*(p-c));
        r = a*b*c/(4*s);
        
        A = angle(a,b,c);
        B = angle(b,c,a);
        C = angle(c,a,b);
        
        n = gcd(gcd(gcd(0.0,A),B),C);

        System.out.println(r*r*Math.sin(n*2)*Math.PI/n/2);


    }
    static Point center(Point p1, Point p2, Point p3){
        double xm,ym;
        ym = ( (p3.x*p3.x - p1.x*p1.x + p3.y*p3.y - p1.y*p1.y)*(p2.x - p1.x) - (p2.x*p2.x - p1.x*p1.x + p2.y*p2.y - p1.y*p1.y)*(p3.x - p1.x) )  /  (2 *( (p3.y - p1.y)*(p2.x - p1.x) - (p2.y - p1.y)*(p3.x - p1.x) ) );
        xm = ( (p2.x*p2.x - p1.x*p1.x) + (p2.y*p2.y - p1.y*p1.y) - 2*ym*(p2.y - p1.y) ) / ( 2*(p2.x - p1.x) );
        return new Point (ym,xm);
    }
    static double angle(double a, double b, double c){
        return Math.acos( (b*b+c*c-a*a) / (2*b*c) );
    }
    static double dist(Point p1, Point p2){
        return Math.sqrt(  (p2.x-p1.x)*(p2.x-p1.x) + (p2.y-p1.y)*(p2.y-p1.y) );
    }

    static double gcd(double a, double b) {
        if(a < 0.001){
            return b;
        }
        if(b < 0.001){
            return a;
        }
        return gcd(b,a%b);
    }
}
class Point{
    double x;
    double y;
    Point(){}
    Point(double x, double y){
        this.x = x;
        this.y = y;
    }
}