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

public class Main implements Runnable {

    public void solve() throws IOException {
        double[][] vs = new double[3][2];
        double[] ls = new double[3];
        double[] ls2 = new double[3];

        for(int i = 0; i < 3; ++i)
            for(int j = 0; j < 2; ++j)
                vs[i][j] = nextDouble();

        for(int i = 0; i < 3; ++i) {
            double dx = vs[i][0] - vs[(i + 1) % 3][0];
            double dy = vs[i][1] - vs[(i + 1) % 3][1];
            ls[i] = Math.sqrt(dx * dx + dy * dy);
        }

        boolean done = false;
        for(int n = 3; !done && n <= 100; ++n)
            for(int i = 1; !done && i < n; ++i)
                for(int j = 1; !done && j < n; ++j)
                    if(i != j) {
                        vs[0][0] = 1; vs[0][1] = 0;
                        vs[1][0] = Math.cos(2 * Math.PI / n * i); 
                        vs[1][1] = Math.sin(2 * Math.PI / n * i);
                        vs[2][0] = Math.cos(2 * Math.PI / n * j);
                        vs[2][1] = Math.sin(2 * Math.PI / n * j);

                        for(int k = 0; k < 3; ++k) {
                            double dx = vs[k][0] - vs[(k + 1) % 3][0];
                            double dy = vs[k][1] - vs[(k + 1) % 3][1];
                            ls2[k] = Math.sqrt(dx * dx + dy * dy);
                        }
                        
                        final double EPS = 0.00001;

                        if(Math.abs(ls[0] / ls[1] - ls2[0] / ls2[1]) < EPS &&
                           Math.abs(ls[1] / ls[2] - ls2[1] / ls2[2]) < EPS)
                        {
                            double R = ls[0] / ls2[0];
                            double ans = Math.sin(Math.PI / n) * Math.cos(Math.PI / n) * R * R * n;
                            output.printf("%.8f", ans);
                            done = true;
                        }
                    }
    }

    public void run() {
        try {
            input = new BufferedReader(new InputStreamReader(System.in));
            output = new PrintWriter(System.out);

            solve();

            input.close();
            output.close();
        } catch(Exception e) {
            e.printStackTrace();
            System.exit(1);
        }
    }

    BufferedReader input;
    PrintWriter output;
    StringTokenizer tok;

    String nextToken() throws IOException {
        while(tok == null || !tok.hasMoreTokens())
            tok = new StringTokenizer(input.readLine());

        return tok.nextToken();
    }

    int nextInt() throws IOException {
        return Integer.valueOf(nextToken());
    }

    long nextLong() throws IOException {
        return Long.valueOf(nextToken());
    }

    double nextDouble() throws IOException {
        return Double.valueOf(nextToken());
    }

    public static void main(String[] args) {
        new Thread(new Main()).start();
    }
}