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.File;
import java.io.PrintWriter;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.TreeSet;

public class CodeforcesA
{

    /**
     * @param args
     */
    Scanner inp;
    PrintWriter out;

    double sqr(double a)
    {
        return a * a;
    }

    double dist(double a, double b, double c, double d)
    {
        return Math.sqrt(sqr(a - c) + sqr(b - d));

    }

    double sqare(double a, double b, double c)
    {
        double p = (a + b + c) / 2;
        return Math.sqrt(Math.abs(p * (p - a) * (p - b) * (p - c)));
    }

    double polygonResult(int n, double r)
    {
        double sin = Math.sin(2 * Math.PI / (double) n);
        return sin * r * r * n / 2;

    }
    
    double getCos(double a, double r)
    {
        double q = Math.abs(sqr(r)- sqr(a)/4);
        q = Math.sqrt(q);
        double np = q/r;
        return 2 * np * np - 1;
    }

    void run() throws Exception
    {
        inp = new Scanner(System.in);
        out = new PrintWriter(System.out);

        double ax = Double.parseDouble(inp.next());
        double ay = Double.parseDouble(inp.next());
        double bx = Double.parseDouble(inp.next());
        double by = Double.parseDouble(inp.next());
        double cx = Double.parseDouble(inp.next());
        double cy = Double.parseDouble(inp.next());
        double a = dist(bx, by, cx, cy), b = dist(ax, ay, cx, cy), c = dist(ax,
                ay, bx, by);

        double R = a * b * c / (4 * sqare(a, b, c));
        double angleA = sqare(R, R, a) * 2 / sqr(R);
        double angleB = (sqare(R, R, b) * 2 / sqr(R));
        double angleC = (sqare(R, R, c) * 2 / sqr(R));
        angleA = Math.atan2(angleA, getCos(a,R));
        angleB = Math.atan2(angleB, getCos(b,R));;
        angleC = Math.atan2(angleC, getCos(c,R));;

        
        double ans = 1e18;
        /*for (int j = 0; j < 8; j++)
        {
            if ((j & 1) != 0)
                angleA = Math.PI - sA;
            else
                angleA = sA;
            if ((j & 2) != 0)
                angleB = Math.PI - sB;
            else
                angleB = sB;
            if ((j & 4) != 0)
                angleC = Math.PI - sC;
            else
                angleC = sC;
*/
            for (int i = 3; i <= 100; i++)
            {
                double angle = 2 * Math.PI / (double) i;
                double ca = angleA / angle + 1e-3;
                double cb = angleB / angle + 1e-3;
                double cc = angleC / angle + 1e-3;
                if (ca - (double) (int) ca <= 0.005
                        && cb - (double)(int)cb <= 0.005
                        && cc - (double)(int)cc <= 0.005)
                {
                    ans = Math.min(ans,(polygonResult(i, R)));
                    break;
                }
            }

        //}
        out.print(ans);

        out.close();
        inp.close();

    }

    public static void main(String[] args) throws Exception
    {
        // TODO Auto-generated method stub
        new CodeforcesA().run();

    }

}