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:
import math
s1 = input().split()
s2 = input().split()
s3 = input().split()
x1 = float(s1[0])
y1 = float(s1[1])
x2 = float(s2[0])
y2 = float(s2[1])
x3 = float(s3[0])
y3 = float(s3[1])
def center(x1, y1, x2, y2, x3, y3):
    x = ((y3-y2)/2*(y2-y1)*(y3-y1) + (x1+x2)/2*(x1*y3-x1*y1-x2*y3+x2*y1)-(x1+x3)/2*(x1*y2-x1*y1-x3*y2+x3*y1))/(x1*y3-x1*y1-x2*y3+x2*y1-x1*y2+x1*y1+x3*y2-x3*y1)
    y = ((x1-x2)*(x-(x1+x2)/2))/(y2-y1) + (y1+y2)/2
    r = math.sqrt((x1-x)**2+(y1-y)**2)
    return (x, y, r)

def poligon(x0, y0, x1, y1, r, n):
    a = 2*math.pi/n
    x = x1-x0
    y = y1-y0
    res = []
    for i in range(n):
        xn = x*math.cos(i*a) - y*math.sin(i*a) + x0
        yn = x*math.sin(i*a) + y*math.cos(i*a) + y0
        if "%.6f" % (xn)=='-0.000000':
            xn = 0
        if "%.6f" % (yn)=='-0.000000':
            yn = 0
        res.append((xn, yn))
    return res

def square(r, x, n):
    return math.sqrt(r**2-x**2/4)*0.5*x*n

for i in range(3, 101):
    c = center(x1, y1, x2, y2, x3, y3)
    r = poligon(c[0], c[1], x1, y1, c[2], i)
    st = 0
    for x in [(x1, y1), (x2, y2), (x3, y3)]:
        for y in r:
            if math.fabs(x[0]-y[0])<=0.00001 and math.fabs(x[1]-y[1])<=0.00001:
                st+=1

    if st==3:
        print("%.8f" % (square(float(c[2]), math.sqrt((float(r[0][0])-float(r[1][0]))**2+(float(r[0][1])-float(r[1][1]))**2), i)))
        break