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

EPS = 1e-6

class Point:
    def __init__(self, x, y):
        self.x = x
        self.y = y
    
    def dist(self, p:"Point"):
        return math.sqrt((self.x - p.x) ** 2 + (self.y - p.y) ** 2)
    
    def dist_square(self, p:"Point"):
        return (self.x - p.x) ** 2 + (self.y - p.y) ** 2

def getAreafromPolygon(points):
    A = 0.0
    for p1, p2 in zip(points[:-1], points[1:]):
        A += 0.5 * (p1.x*p2.y - p2.x*p1.y)
    
    A += 0.5 * (points[-1].x * points[0].y - points[0].x * points[-1].y)
    return abs(A)

def getRadiusCircleFromThreePoints(p1:'Point', p2:'Point', p3:'Point'):
    triangle_area = getAreafromPolygon([p1, p2, p3])
    if triangle_area < EPS:
        raise Exception('three points are in the same line')
    r = p1.dist(p2) * p1.dist(p3) * p2.dist(p3) / 4.0 / triangle_area
    return r

def get_angle_from_cosine_law(l1:float, l2: float, length_opposite_angle:float):
    l3 = length_opposite_angle

    if l1 < EPS or l2 < EPS:
        raise Exception('side length must be positive real number')
    if abs(l1-l2) < EPS and l3 <EPS:
        return 0
    if abs(l1+l2-l3) < EPS:
        return math.pi
    if l1+l2-l3 < -EPS:
        raise Exception('invalid input; length of three sides cannot form triangle')

    return math.acos( (l1**2 + l2**2 - l3**2)/ (2*l1*l2) )

points = []
for i in range(3):
    x, y = map(float, input().split(' '))
    points.append(Point(x,y))

radius = getRadiusCircleFromThreePoints(points[0], points[1], points[2])
l01 = points[0].dist(points[1])
l02 = points[0].dist(points[2])
angle_p0Op1 = get_angle_from_cosine_law(radius, radius, l01)
angle_p0Op2 = get_angle_from_cosine_law(radius, radius, l02)

i = 3
while i:
    angle_per_side = 2*math.pi / i
    mod_angle_p0Op1 = math.fmod(angle_p0Op1 ,angle_per_side)
    mod_angle_p0Op2 = math.fmod(angle_p0Op2 ,angle_per_side)

    if (
        (mod_angle_p0Op1 < EPS or mod_angle_p0Op1 > angle_per_side-EPS)
        and (mod_angle_p0Op2 < EPS or mod_angle_p0Op2 > angle_per_side-EPS)
    ): 
        print(i * 0.5 * radius * radius * math.sin(angle_per_side))
        break
    
    i += 1