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 PYTHON3):

Solution:
from math import *;

def norm (v):
    return sqrt(v[0]*v[0] + v[1]*v[1]);
def sub (v1, v2):
    return (v1[0] - v2[0], v1[1] - v2[1]);
def add (v1, v2):
    return (v1[0] + v2[0], v1[1] + v2[1]);
def mult (v, d):
    return (v[0]*d, v[1]*d);
def div(v, d):
    return (v[0]/d, v[1]/d);
def dot(v1, v2):
    return v1[0]*v2[0] + v1[1]*v2[1];
def get_angle(v1, v2):
    temp = dot(v1, v2)/norm(v1)/norm(v2);
    temp = max(min(temp, 1.0), -1.0);
    return acos(temp);

l1 = input().split(" ");
l2 = input().split(" ");
l3 = input().split(" ");
p1 = (float(l1[0]), float(l1[1]));
p2 = (float(l2[0]), float(l2[1]));
p3 = (float(l3[0]), float(l3[1]));
mid1 = div(add(p1, p2), 2.0);
mid2 = div(add(p2, p3), 2.0);
dir1 = (p1[1] - p2[1], p2[0] - p1[0]);
dir2 = (p2[1] - p3[1], p3[0] - p2[0]);
a = mid1[0]; b = mid1[1]; x = dir1[0]; y = dir1[1]; c = mid2[0]; d = mid2[1]; w = dir2[0]; v = dir2[1];
t = (c*v - d*w + b*w - a*v)/(x*v - w*y);
center = add(mid1, mult(dir1, t));
radius = sub(p1, center);
radiusnorm = norm(radius);
r1 = radius;
r2 = sub(p2, center);
r3 = sub(p3, center);
a1 = get_angle(r1, r2);
a2 = get_angle(r1, r3);
for i in range(3, 101):
    innerangle = 2.0*pi/float(i);
    area = radiusnorm*radiusnorm/2.0*sin(innerangle)*i;
    round1 = round(a1/innerangle);
    round2 = round(a2/innerangle);
    if (isclose(round1, a1/innerangle, rel_tol=1e-5) and isclose(round2, a2/innerangle, rel_tol=1e-5)): 
        print(area);
        break;