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:
# -*- coding:utf-8 -*-
import sys
import math
from decimal import *

getcontext().prec = 100
def gcd(a, b):
    if b > a:
        return gcd(b, a)
    elif math.fabs(b) > 0.0001:

        return gcd(
            b,
            a - math.floor(a/b) * b
        )
    else:
        return a

class Point(object):
    x = None
    y = None
    def __init__(self, *args ):
        if len(args) == 1:
            self.x, self.y = args[0]
        else:
            self.x, self.y = args

    def dist(self, a):
        x = a.x - self.x
        y = a.y - self.y
        return math.sqrt(x*x + y*y)

    def cross(self, a):
        return self.x * a.y - a.x * self.y

    def __sub__(self, other):
        return Point(self.x - other.x, self.y - other.y)

    def area(self, a, b):
        p1 = a - self
        p2 = b - self
        return math.fabs(p1.cross(p2)) / 2.0

    def angle(self, left, right):
        b = self.dist(left)
        c = self.dist(right)
        a = left.dist(right)
        return math.acos(
            (b*b+c*c-a*a) / ( 2.0 * b * c)
        )

def process(fin):

    p1 = Point(list(map(Decimal, fin().split())))
    p2 = Point(list(map(Decimal, fin().split())))
    p3 = Point(list(map(Decimal, fin().split())))

    a = p2.dist(p3)
    b = p3.dist(p1)
    c = p1.dist(p2)
    S = p1.area(p2,p3)
    R = (a*b*c) / (4.0 * S)

    A = p1.angle(p2, p3) * 2.0
    B = p2.angle(p1, p3) * 2.0
    C = p3.angle(p1, p2) * 2.0

    g = gcd( A, gcd(B, C))
    # n = math.floor(2.0 * math.pi / g)
    n = 2.0 * math.pi / g

    result = n * R * R * math.sin(g) / 2.0

    print(result)

if __name__ == '__main__':
    process(sys.stdin.readline)