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.io.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main
{
    public static final double SIDE_LENGTH = 0.00001;

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double ax = in.nextDouble();
        double ay = in.nextDouble();

        double bx = in.nextDouble();
        double by = in.nextDouble();

        double cx = in.nextDouble();
        double cy = in.nextDouble();

        double a = Math.sqrt((bx - cx) * (bx - cx) + (by-cy) * (by - cy));
        double b = Math.sqrt((cx - ax) * (cx - ax) + (cy-ay) * (cy - ay));
        double c = Math.sqrt((ax - bx) * (ax - bx) + (ay - by) * (ay - by));

        double radius =  Math.abs((a * b * c) / (2 *( ax * (by - cy) + bx * ( cy - ay) + cx * (ay - by))));

        double angle1 = Math.acos((b*b + c*c - a*a) / (2*b*c));
        double angle2 = Math.acos((c*c + a*a - b*b) / (2*c*a));
        double angle3 = Math.acos((a*a + b*b - c*c) / (2*a*b));
        //System.out.println(angle1);
        //System.out.println(angle2);
        //System.out.println(angle3);
        int an = 1, bn = 1, cn = 1;

        for(double i=1;i<=100;i++) {
            if(Math.abs(angle1 * i/ Math.PI - Math.round(angle1 * i / Math.PI)) < SIDE_LENGTH) {
                an = (int)i;
                break;
            }
        }

        for(double i=1;i<=100;i++) {
            if(Math.abs(angle2 * i/ Math.PI - Math.round(angle2 * i / Math.PI)) < SIDE_LENGTH) {
                bn = (int)i;
                break;
            }
        }

        for(double i=1;i<=100;i++) {
            if(Math.abs(angle3 * i/ Math.PI - Math.round(angle3 * i / Math.PI)) < SIDE_LENGTH) {
                cn = (int)i;
                break;
            }
        }
       // System.out.println(an);
       // System.out.println(bn);
       // System.out.println(cn);
        int n = findLCM(findLCM(an,bn), cn);
        //System.out.println(radius);
        double area = n * 0.5 * radius * radius * Math.sin(2 * Math.PI / n);
        //System.out.println(area);
        System.out.printf("%.9f", area);



    }

    public static int findLCM(int a, int b) {
        return a * b / findGCD(a,b);
    }

    public static int findGCD(int a, int b) {
        if(b == 0) {
            return a;
        } else {
            return findGCD(b, a%b);
        }
    }
}