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

Solution:
import math
import cmath
import sys

class Segment:
    def __init__(self,bgn,end):
        self.bgn = bgn
        self.end = end


class Circle:
    def __init__(self,p,r):
        self.p = p
        self.r = r


def cross(a,b):
    return (a.conjugate()*b).imag;


def rotate(p):
    return complex(-p.imag,p.real)


def calcCircle(a,b,c):
    mid1 = (a+b)/2.0;
    mid2 = (a+c)/2.0;
    s1 = Segment(mid1,mid1+rotate(b-a))
    s2 = Segment(mid2,mid2+rotate(c-a))
    center = calcIntersect(s1,s2)
    return Circle(center,abs(a-center))


def calcIntersect(a,b):
    d1 = (a.end-a.bgn)
    d2 = (b.end-b.bgn)
    return a.bgn + d1*cross(b.bgn-a.bgn,d2)/cross(d1,d2);


def read():
    v = map(float,sys.stdin.read().split())
    return complex(v[0],v[1]),complex(v[2],v[3]),complex(v[4],v[5])


def isInteger(n):
    return abs(n-round(n))<1e-4


def work((a,b,c)):
    b,c = c,b
    circle = calcCircle(a,b,c)

    angle1 = cmath.phase((a-circle.p)/(b-circle.p))
    angle2 = cmath.phase((b-circle.p)/(c-circle.p))
    angle3 = cmath.phase((c-circle.p)/(a-circle.p))

    angle1,angle2,angle3 = sorted((angle1,angle2,angle3))

    if angle1<0 and angle2<0 and angle3>0:
        angle3 -= cmath.pi*2
        angle1 *= -1
        angle2 *= -1
        angle3 *= -1
    elif angle1<0 and angle2>0 and angle3>0:
        angle1 += cmath.pi*2
    else:
        angle1 = abs(angle1)
        angle2 = abs(angle2)
        angle3 = abs(angle3)

    angle1,angle2,angle3 = sorted((angle1,angle2,angle3))
    
    for i in range(1,101):
        theta = angle1/i
        if isInteger(angle2/theta) and isInteger(angle3/theta):
            print "%.8lf"%(math.sin(theta)*circle.r*circle.r*math.pi/theta)
            break

        
work(read())