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
def abd(a,b):
    if a>b:
        return a-b
    return b-a
class point(object):
    def __init__(self,x,y):
        self.x=float(x)
        self.y=float(y)
    def display(self):
        print self.x
        print self.y
def midpoint(p,q):
    r=point((p.x+q.x)/2,(p.y+q.y)/2)
    return r
class line(object):
    def __init__(self,p1,p2):
        self.a=float(p1.y-p2.y)
        self.b=float(p2.x-p1.x)
        self.c=float(p1.x*p2.y-p2.x*p1.y)
    def setline(self,l,p):
        a=l.a
        b=l.b
        self.a=b
        self.b=-a
        self.c=a*p.y-b*p.x
    def display(self):
        print self.a
        print self.b
        print self.c
def intersection(l,m):
    if (l.a*m.b-m.a*l.b):
        s=point((l.b*m.c-m.b*l.c)/(l.a*m.b-m.a*l.b),(l.c*m.a-m.c*l.a)/(l.a*m.b-m.a*l.b))
    else:
        s=point((-l.c*(l.a+l.b))/(l.a**2+l.b**2),(l.a*l.c-l.b*m.c)/(l.a**2+l.b**2))
    return s
class vector(object):
    def __init__(self,p1,p2):
        self.x=float(p2.x-p1.x)
        self.y=float(p2.y-p1.y)
    def mod(self):
        return math.sqrt(self.x**2+self.y**2)
def dotprod(v1,v2):
    return v1.x*v2.x+v1.y*v2.y
def angle(v1,v2):
    res=math.acos((dotprod(v1,v2)/(v1.mod()*v2.mod())))
    return res*180/math.pi
def mod(a,b):
    return abd(a%b,b)<=0.01 or a%b<=0.01 or a%b==0
y=[float (x) for x in raw_input().split()]
p1=point(y[0],y[1])
y=[float (x) for x in raw_input().split()]
p2=point(y[0],y[1])
y=[float (x) for x in raw_input().split()]
ang=[360.0/x for x in range(3,101)]
p3=point(y[0],y[1])
l1=line(p1,p2)
l2=line(p2,p3)
l1.setline(l1,midpoint(p1,p2))
l2.setline(l2,midpoint(p2,p3))
p=midpoint(p2,p3)
c=point(0,0)
c=intersection(l1,l2)
v1=vector(c,p1)
v2=vector(c,p2)
v3=vector(c,p3)
a1=angle(v1,v2)
a2=angle(v2,v3)
a3=angle(v3,v1)
l=[]
for i in range(len(ang)):
    if mod(a1,ang[i]) and mod(a2,ang[i]) and mod(a3,ang[i]):
        l.append(i)
r=math.sqrt((c.x-p1.x)**2+(c.y-p1.y)**2)
m=0.5*r*r*math.sin(ang[l[0]]*math.pi/180)*(l[0]+3)
for i in l:
    if 0.5*r*r*math.sin(ang[i]*math.pi/180)*(i+3)<m:
        m=0.5*r*r*math.sin(ang[i]*math.pi/180)*(i+3)
print m