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.*;
import java.lang.*;
import java.math.*;
import java.io.*;

import static java.lang.Math.*;
import static java.util.Arrays.*;

public class _P001C{
    Scanner sc=new Scanner(System.in);

    int INF=1<<28;
    double EPS=1e-6;

    P[] ps;

    void run(){
        ps=new P[3];
        for(int i=0; i<3; i++){
            double x=sc.nextDouble();
            double y=sc.nextDouble();
            ps[i]=new P(x, y);
        }
        solve();
    }

    void solve(){
        P c=ccenter(ps[0], ps[1], ps[2]);
        P[] qs={ps[0].sub(c), ps[1].sub(c), ps[2].sub(c)};
        double r=ps[0].sub(c).abs();
        double[] phi=new double[3];
        for(int i=0; i<3; i++){
            double abs=qs[i].abs()/qs[(i+1)%3].abs();
            double cos=qs[i].dot(qs[(i+1)%3])/abs;
            double sin=qs[i].det(qs[(i+1)%3])/abs;
            phi[i]=atan2(sin, cos);
            if(phi[i]+EPS<0){
                phi[i]+=2*PI;
            }
        }
        debug(phi);
        for(int n=3; n<=100; n++){
            boolean ok=true;
            double theta=2*PI/n;
            for(int i=0; i<3; i++){
                ok&=min(abs(phi[i]%theta), abs(phi[i]%theta-theta))<EPS;
            }
            //debug(phi[0]%theta, phi[1]%theta, phi[2]%theta, ok);
            if(ok){
                double area=r*r*sin(theta)*n/2;
                // debug("n", n,r);
                println(area+"");
                break;
            }
            //debug(n, r*r*sin(theta)*n/2);
        }
    }

    // 71.756151 7.532275
    // -48.634784 100.159986
    // 91.778633 158.107739
    // 9991.27897663

    P ccenter(P p1, P p2, P p3){
        P m1=p1.add(p2).div(2);
        P m2=p2.add(p3).div(2);
        return isLL(m1, m1.add(p1.sub(m1).rot90()), m2,
                m2.add(p2.sub(m2).rot90()));
    }

    P isLL(P p1, P p2, P q1, P q2){
        double d=q2.sub(q1).det(p2.sub(p1));
        if(abs(d)<EPS)
            return null;
        return p1.add(p2.sub(p1).mul(q2.sub(q1).det(q1.sub(p1))/d));
    }

    class P{
        double x, y;

        P(){
            this(0, 0);
        }

        P(double x, double y){
            this.x=x;
            this.y=y;
        }

        P add(P p){
            return new P(x+p.x, y+p.y);
        }

        P sub(P p){
            return new P(x-p.x, y-p.y);
        }

        P mul(double m){
            return new P(x*m, y*m);
        }

        P div(double d){
            return new P(x/d, y/d);
        }

        double abs(){
            return sqrt(abs2());
        }

        double abs2(){
            return x*x+y*y;
        }

        double arg(){
            return atan2(y, x);
        }

        // inner product
        double dot(P p){
            return x*p.x+y*p.y;
        }

        // outer product
        double det(P p){
            return x*p.y-y*p.x;
        }

        P rot(double d){
            return new P(cos(d)*x-sin(d)*y, sin(d)*x+cos(d)*y);
        }

        P rot90(){
            return new P(-y, x);
        }

        // conjugation
        P conj(){
            return new P(x, -y);
        }
    }

    void println(String s){
        System.out.println(s);
    }

    void print(String s){
        System.out.print(s);
    }

    void debug(Object... os){
        System.err.println(Arrays.deepToString(os));
    }

    public static void main(String[] args){
        new _P001C().run();
    }
}