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;

import static java.lang.Math.PI;
import static java.lang.Math.abs;
import static java.lang.Math.hypot;
import static java.lang.Math.round;
import static java.lang.Math.sin;

public class Circus {
    int gcd(int a,int b) { return b>0?gcd(b,a%b):a;}

    double[] findCenter(double[] x0, double[] x1, double x2[]) {
        double a = x0[0] - x1[0];
        double b = x0[1] - x1[1];
        double c = x0[0] - x2[0];
        double d = x0[1] - x2[1];
        double w0 = (x0[0]*x0[0] - x1[0]*x1[0] + x0[1]*x0[1] - x1[1]*x1[1])/2.;
        double w1 = (x0[0]*x0[0] - x2[0]*x2[0] + x0[1]*x0[1] - x2[1]*x2[1])/2.;
        double det = a * d - b * c;
        if (det==0) throw new NumberFormatException();
        double x = (d * w0 - b * w1) / det;
        double y = (-c * w0 + a * w1) / det;
        return new double[]{x,y};
    }

    double getAngle(double nx, double ny) {
        double w = Math.atan2(ny, nx);
        //        if (w<0) w += 2 * PI;
        return w;
    }

    boolean isOK(double angle, double even) {
        double w = angle / even;
        return (abs(round(w) - w) < 1e-4);
    }

    public double findSmallest(double[] coordinates1, double[] coordinates2, double[] coordinates3) {
        double[] c = findCenter(coordinates1, coordinates2, coordinates3);
        for (int i = 0; i < 2; i++) {
            coordinates1[i] -= c[i];
            coordinates2[i] -= c[i];
            coordinates3[i] -= c[i];
        }
        double r = hypot(coordinates1[0], coordinates1[1]);
        double[] a = new double[] {
                getAngle(coordinates1[0], coordinates1[1]),
                getAngle(coordinates2[0], coordinates2[1]),
                getAngle(coordinates3[0], coordinates3[1]),
        };
        Arrays.sort(a);

        for (int n = 3; n <= 200; n++) {
            double even = 2 * PI / n;
            if (isOK(a[2] - a[1], even) && isOK(a[1] - a[0], even)) {
                return r * r * sin(even) / 2. * n;
            }
        }
        return 0;
    }

    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        double x1=scanner.nextDouble();
        double y1=scanner.nextDouble();
        double x2=scanner.nextDouble();
        double y2=scanner.nextDouble();
        double x3=scanner.nextDouble();
        double y3=scanner.nextDouble();
        Circus t = new Circus();
        System.out.println(t.findSmallest(new double[]{x1,y1},new double[]{x2,y2},new double[]{x3,y3}));
    }

}