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 static java.lang.Math.*;

public class Round1TaskC implements Runnable {
    static PrintWriter pw = null;
    static BufferedReader br = null;
    StringTokenizer st = null;

    public static void main(String[] args) throws IOException {
        pw = new PrintWriter(new OutputStreamWriter(System.out));
        br = new BufferedReader(new InputStreamReader(System.in));
        (new Thread(new Round1TaskC())).start();
    }

    void nline() {
        try {
            st = new StringTokenizer(br.readLine());
        } catch (IOException e) {
        }
    }

    int ni() {
        while (st == null || !st.hasMoreTokens())
            nline();
        return Integer.valueOf(st.nextToken());
    }

    double nd() {
        while (st == null || !st.hasMoreTokens())
            nline();
        return Double.valueOf(st.nextToken());
    }

    long nl() {
        while (st == null || !st.hasMoreTokens())
            nline();
        return Long.valueOf(st.nextToken());
    }

    String nwrd() {
        while (st == null || !st.hasMoreTokens())
            nline();
        return st.nextToken();
    }

    String nextLine() {
        try {
            return br.readLine();
        } catch (IOException e) {
        }
        return null;
    }

    double points[][][] = new double[2][3][2], cs[][][] = new double[2][3][3];

    double hypot(double t1[], double t2[]) {
        return sqrt(pow(t1[0] - t2[0], 2.0) + pow(t1[1] - t2[1], 2.0));
    }

    public void solve() {
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 2; j++) {
                points[0][i][j] = nd();
            }
        }
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < i; j++) {
                cs[0][i][j] = cs[0][j][i] = hypot(points[0][i], points[0][j]);
            }
        }
        double r = 1e100;
        int nums=2;
        while(true){
            nums++;
            points[1][0][1] = 0;
            points[1][0][0] = 1;
            for (int t1 = 1; t1 < nums; t1++) { 
                points[1][1][0] = cos(2 * PI / nums * t1);
                points[1][1][1] = sin(2 * PI / nums * t1);
                for (int t2 = t1 + 1; t2 < nums; t2++) {                    
                    points[1][2][0] = cos(2 * PI / nums * t2);
                    points[1][2][1] = sin(2 * PI / nums * t2);
                    for (int i = 0; i < 3; i++)
                        for (int j = 0; j < i; j++)
                            cs[1][i][j] = cs[1][j][i] = hypot(points[1][i], points[1][j]);
                    double rate = cs[1][1][2] / cs[0][1][2];
                    boolean is = true;
                    for (int i = 0; i < 3; i++)
                        for (int j = 0; j < i; j++)
                            if (abs(cs[1][i][j] / cs[0][i][j] - rate) > 1e-6)
                                is = false;
                    if (is)
                        r = min(r, 0.5 * nums * sin(2 * PI / nums) / pow(rate, 2.0));
                }
            }
            if (nums>100) break;
        }   
        pw.printf("%.12f\n", r);
        return;
    }

    public void run() {
        solve();
        pw.close();
    }

}