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;

public class CircusMain
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);

        double x1 = in.nextDouble();
        double y1 = in.nextDouble();
        double x2 = in.nextDouble();
        double y2 = in.nextDouble();
        double x3 = in.nextDouble();
        double y3 = in.nextDouble();

        double s1, s2, s3;

        //get distances of the three sides of the triangle formed by the three points
        s1 = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));
        s2 = Math.sqrt(Math.pow(x3 - x2, 2) + Math.pow(y3 - y2, 2));
        s3 = Math.sqrt(Math.pow(x3 - x1, 2) + Math.pow(y3 - y1, 2));

        double a = Math.min(s1, Math.min(s2, s3));
        double b = Math.min(
                Math.min(Math.max(s1,s3), Math.max(s2, s3)), Math.max(s1, s2)
                );
        double c = Math.max(s1, Math.max(s2, s3));

        double triangleArea = Math.abs(x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2)) / 2;
        double radius = (a * b * c) / (4 * triangleArea);

        //these angles are in radians
        double bcAngle = Math.acos((Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2)) / (2 * b * c)) /* * 180/Math.PI */;
        double abAngle = Math.acos((Math.pow(c, 2) + Math.pow(a, 2) - Math.pow(b, 2)) / (2 * c * a))/* * 180/Math.PI */;
        double acAngle = Math.acos((Math.pow(a, 2) + Math.pow(b, 2) - Math.pow(c, 2)) / (2 * a * b))/* *180/Math.PI */;

        double n = Math.PI / greatestCommonFactor(bcAngle, greatestCommonFactor(acAngle, abAngle));
        double area = n * 0.5 * radius * radius * Math.sin(Math.PI * 2.0 / n);
        System.out.println(area);
    }

    public static double greatestCommonFactor(double lhsAngle, double rhsAngle)
    {
        while (Math.abs(lhsAngle) > 0.00004 && Math.abs(rhsAngle) > 0.00004)
        {
            if (lhsAngle > rhsAngle)
            {
                lhsAngle -= Math.floor(lhsAngle / rhsAngle) * rhsAngle;
            }
            else
            {
                rhsAngle -= Math.floor(rhsAngle / lhsAngle) * lhsAngle;
            }
        }
        return lhsAngle + rhsAngle;
    }

}