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 os
import sys
from io import BytesIO, IOBase

BUFSIZE = 8192
class FastIO(IOBase):
    newlines = 0
    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None
    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()
    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()
    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)
class IOWrapper(IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")
sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")
##########################################################


from math import *

*p1,=map(float,input().split())
*p2,=map(float,input().split())
*p3,=map(float,input().split())

def cmp(p, q, eps=1e-9):
    return abs(p - q) < eps
    
def is_int_fraction(a, b, eps=1e-7):
    x = a/b
    return cmp(x, round(x), eps)

def mid_line(p, q):
    # Ax + By = C
    A = p[0] - q[0]
    B = p[1] - q[1]
    x = (p[0] + q[0])/2
    y = (p[1] + q[1])/2
    
    C = A*x + B*y
    return A, B, C
    
def inter(p, q):
    A1, B1, C1 = p
    A2, B2, C2 = q    
    
    t = A2*B1 - A1*B2
    
    if cmp(t, 0):
        return 0, 0
    
    cy = (A2*C1 - A1*C2) / t
    cx = (B2*C1 - B1*C2) / -t
   
    return cx, cy

cx, cy = inter(mid_line(p1, p2), mid_line(p2, p3))

p1[0] -= cx
p2[0] -= cx
p3[0] -= cx

p1[1] -= cy
p2[1] -= cy
p3[1] -= cy

r2 = p1[0]*p1[0] + p1[1]*p1[1]

cos_a = (p1[0]*p2[0] + p1[1]*p2[1])/r2
cos_b = (p1[0]*p3[0] + p1[1]*p3[1])/r2
cos_c = (p2[0]*p3[0] + p2[1]*p3[1])/r2
cos_a = max(-1, min(1, cos_a))
cos_b = max(-1, min(1, cos_b))
cos_c = max(-1, min(1, cos_c))
a = acos(cos_a)
b = acos(cos_b)
c = acos(cos_c)

m = min(a, b, c)

for i in range(1, 101):
    angle = m / i
    # print(f'{i} {angle:.06f} {a/angle:.06f} {b/angle:.06f} {c/angle:.06f} {2*pi/angle:.06f}')
    if (
        is_int_fraction(a, angle, 1e-4) 
        and is_int_fraction(b, angle, 1e-4) 
        and is_int_fraction(c, angle, 1e-4)
        and is_int_fraction(2*pi, angle, 1e-4)
    ):
        n = round(2*pi/angle)
        print(n*r2/2*sin(2*pi/n))
        break