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 pi,tan,sin,cos,sqrt

def cot(x):
    return 1/tan(x)

def area(n,r):
    """Area of convex regular n-gon with radius r"""
    return 0.5*n*r*r*sin(2*pi/n)


def rotate(v,theta):
    """
    Rotation matrix
    |cos(theta) -sin(theta)|
    |sin(theta)  cos(theta)|
    """
    return ( v[0]*cos(theta)-v[1]*sin(theta)
            ,v[0]*sin(theta)+v[1]*cos(theta)
           )
    
def add(v1,v2):
    return (v1[0]+v2[0], v1[1]+v2[1])

def sub(v1,v2):
    return (v1[0]-v2[0], v1[1]-v2[1])

def mult(v,f):
    return (f*v[0],f*v[1])

def norm(v):
    return sqrt(v[0]**2+v[1]**2)

def find_circle(a,b,c):
    """Find the circle that going through points a,b,c in the plane. """
    dir1 = mult(sub(b,a),1/norm(sub(b,a)))
    dir1 = rotate(dir1,pi/2)
    half1 = add(a,mult(sub(b,a),1/2))
    a1,b1 = dir1[0],dir1[1]
    r1,s1 = half1[0],half1[1]

    dir2 = mult(sub(c,b),1/norm(sub(c,b)))
    dir2 = rotate(dir2,pi/2)
    half2 = add(b,mult(sub(c,b),1/2))
    a2,b2 = dir2[0],dir2[1]
    r2,s2 = half2[0],half2[1]

    x = (s1-s2+r2*(b2/a2)-r1*(b1/a1))/((b2/a2)-(b1/a1))
    y = (x-r1)*(b1/a1)+s1
    center = (x,y) 
    radius = norm(sub(center,a))
    return (center, radius)

def find_polygon(a,b,c):
    center, r = find_circle(a,b,c)
    v0 = sub(a,center)
    for n in range(3,101):
        theta = 2*pi/n
        vertices = [a]
        b_found = False
        c_found = False
        for i in range(n):
            vi = rotate(v0,i*theta)
            g = add(center,vi)
            vertices.append(g)

            if norm(sub(g,b))< 1e-4:
                b_found = True 
            elif norm(sub(g,c)) < 1e-4:
                c_found = True
        if b_found and c_found:
            return (n,r)

a = [float(i) for i in input().split()]
b = [float(i) for i in input().split()]
c = [float(i) for i in input().split()]

n,r = find_polygon(a,b,c)
print(area(n,r))