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.Arrays;
import java.util.Scanner;

public class C {
    public static point circumCenter(point p1, point p2, point p3) {
        line l1 = new line(p1, p2);
        line l2 = new line(p2, p3);
        line perp1 = l1.perpendicular(new point((p1.x + p2.x) / 2,
                (p1.y + p2.y) / 2));
        line perp2 = l2.perpendicular(new point((p2.x + p3.x) / 2,
                (p2.y + p3.y) / 2));
        return perp1.intersects(perp2);
    }

    public static boolean eq(double a, double b) {
        if (Math.abs(a - b) <= 1e-5)
            return true;
        return false;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        point[] A = new point[3];
        for (int i = 0; i < 3; i++)
            A[i] = new point(in.nextDouble(), in.nextDouble());
        point c = circumCenter(A[0], A[1], A[2]);
        double[] angle = new double[3];
        for (int i = 0; i < 3; i++) {
            A[i].x -= c.x;
            A[i].y -= c.y;
            angle[i] = Math.atan2(A[i].y, A[i].x);
        }
        Arrays.sort(angle);
        double d1 = (angle[1] - angle[0]) / 2 / Math.PI;
        double d2 = (angle[2] - angle[1]) / 2 / Math.PI;
        double R = A[0].x * A[0].x + A[0].y * A[0].y;
        for (int i = 2;; i++) {
            if (eq(d1 * i, Math.round(d1 * i))
                    && eq(d2 * i, Math.round(d2 * i))) {
                double area = 0.5 * R * i * Math.sin(2 * Math.PI / i);
                System.out.println(area);
                break;
            }
        }
    }
}

class point {
    double x;
    double y;

    public point(double i, double j) {
        x = i;
        y = j;
    }
}

class line {
    double a;
    double b;
    double c;

    public line(double i, double j, double k) {
        a = i;
        b = j;
        c = k;
    }

    public line(point p1, point p2) {
        a = p2.y - p1.y;
        b = p1.x - p2.x;
        c = a * p1.x + b * p1.y;
    }

    public line perpendicular(point p) {
        line ans = new line(-b, a, -b * p.x + a * p.y);
        return ans;
    }

    public point intersects(line l) {
        double det = a * l.b - l.a * b;
        if (det == 0) {
            // lines are parallel
            return null;
        } else {
            double x = (l.b * c - b * l.c) / det;
            double y = (a * l.c - l.a * c) / det;
            return new point(x, y);
        }
    }
}