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 P1C {

    static class Point {
        double x;
        double y;

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

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Point p0 = new Point(sc.nextDouble(), sc.nextDouble());
        Point p1 = new Point(sc.nextDouble(), sc.nextDouble());
        Point p2 = new Point(sc.nextDouble(), sc.nextDouble());

        double m0 = calcDistance(p0, p1);
        double m1 = calcDistance(p0, p2);
        double m2 = calcDistance(p1, p2);

        double minValue = Double.MAX_VALUE;
        for (int edges = 3; edges < 101; ++edges) {
            for (int j = 1; j < edges; ++j) {
                for (int k = j + 1; k < edges; ++k) {
                    double angle = Math.PI * 2 / edges;
                    double standardArea = 1.0 / 8 * edges * Math.sin(angle) / Math.sin(angle / 2) / Math.sin(angle / 2);

                    double l0 = calc(edges, angle, j);
                    double l1 = calc(edges, angle, k);
                    double l2 = calc(edges, angle, k - j);

                    if ((approxEquals(m0 / l0, m1 / l1) && approxEquals(m0 / l0, m2 / l2))
                            || (approxEquals(m0 / l0, m2 / l1) && approxEquals(m0 / l0, m1 / l2))
                            || (approxEquals(m0 / l1, m1 / l2) && approxEquals(m0 / l1, m2 / l0))
                            || (approxEquals(m0 / l1, m2 / l2) && approxEquals(m0 / l1, m1 / l0))
                            || (approxEquals(m0 / l2, m1 / l0) && approxEquals(m0 / l2, m2 / l1))
                            || (approxEquals(m0 / l2, m2 / l0) && approxEquals(m0 / l2, m1 / l1))) {
                        minValue = Math
                                .min(minValue, standardArea / Math.pow(l0 * l1 * l2, 2.0 / 3) * Math.pow(m0 * m1 * m2, 2.0 / 3));
                    }
                }
            }
        }
        System.out.println(String.format("%.8f", minValue));
    }

    private static boolean approxEquals(double x, double y) {
        return Math.abs(x - y) < 1e-3;
    }

    private static double calcDistance(Point p, Point q) {
        return Math.sqrt((p.x - q.x) * (p.x - q.x) + (p.y - q.y) * (p.y - q.y));
    }

    private static double calc(int edges, double angle, int idx) {
        return 1.0 * Math.sin(Math.PI * (1.0 - 1.0 * idx / edges)) / Math.sin(angle / 2.0);
    }

}