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,sin,acos
xe1, ye1 = input().split()
xe2, ye2 = input().split()
xe3, ye3 = input().split()
 
x1, y1 = float(xe1), float(ye1)
x2, y2 = float(xe2), float(ye2)
x3, y3 = float(xe3), float(ye3)
 
mod = []
for i in range(3, 101):
    mod.append(2 * pi / i)  
 
def vecdis(x):
    return (x[0]**2 + x[1]**2)**0.5
    
def vecangle(x,y,z):
    alpha = acos(abs((x[0]**2 + x[1]**2 + y[0]**2 + y[1]**2 - (z[0]**2 + z[1]**2)) / (2 * (x[0]**2 + x[1]**2)**0.5 * (y[0]**2 + y[1]**2)**0.5)))
    return alpha
 
def f(x, y):
    for i in range(len(mod)):
        a1 = x / mod[i]
        a2 = y / mod[i]
        if abs(round(a1) - a1) < 0.01 and abs(round(a2) - a2) < 0.01:
            i += 3
            return i
            break
        else:
            continue
    
 
ca = [x1 - x3, y1 - y3]
cb = [x2 - x3, y2 - y3]
ab = [x2 - x1, y2 - y1]
 
 
 
 
alpha1 = 2 * vecangle(ca, cb, ab)
alpha2 = 2 * vecangle(ca, ab, cb)
 
N = f(alpha1, alpha2)
dis = vecdis(ab)
r = dis / (2 * sin(alpha1 / 2))
s = N * (0.5 * r**2 * sin(2*pi / N))
 
print ('%.7f' % s)