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 PYTHON):

Solution:
#!/usr/bin/env python
# kristof.jakab@gmail.com
# -*- coding: utf-8 -*-

# http://www.darrensun.com/codeforces-round-1/

# ---------------------------------------
import math


# ---------------------------------------
class Point(object):
    """ """
    def __init__(self, x, y):
        self.x = x
        self.y = y
        self.vabs = math.sqrt(x ** 2 + y ** 2)


class Line(object):
    """ """
    def __init__(self, A, B):
        self.direction = Point(B.x - A.x, B.y - A.y)
        self.length = math.sqrt((B.x - A.x) ** 2 + (B.y - A.y) ** 2)


class Angle(object):
    """ """
    def __init__(self, vertex, point_1, point_2):
        self.opposite = Line(point_1, point_2).length
        self.ray_1 = Line(vertex, point_1).length
        self.ray_2 = Line(vertex, point_2).length
        self.calculate_angle()

    def calculate_angle(self):  # law of cosines
        numr = self.ray_1 ** 2 + self.ray_2 ** 2 - self.opposite ** 2
        denr = 2 * self.ray_1 * self.ray_2
        self.angle = math.acos(numr / denr)


class Triangle(object):
    """ """
    def __init__(self, A=None, B=None, C=None):
        # vertices
        self.A = A
        self.B = B
        self.C = C
        # sides
        self.a = Line(B, C).length
        self.b = Line(A, C).length
        self.c = Line(A, B).length
        # angles
        self.alpha = Angle(A, B, C).angle
        self.beta = Angle(B, A, C).angle
        self.gamma = Angle(C, A, B).angle
        # radius of circumscribed circle
        self.R = self.calculate_R()

    def calculate_R(self):  # Heron's formula
        s = (self.a + self.b + self.c) / 2
        A = math.sqrt(s * (s-self.a) * (s-self.b) * (s - self.c))
        return (self.a * self.b * self.c) / (4 * A)


# ---------------------------------------
def gcd(p, q):  # Greatest Common Divisor
    while(math.fabs(p) > 0.0001 and math.fabs(q) > 0.0001):
        # print p, q
        if p > q:
            p -= math.floor(p / q) * q
        else:
            q -= math.floor(q / p) * p
    return p + q


# ----------------------------------------
def main():
    A = Point(*map(float, raw_input().split()))
    B = Point(*map(float, raw_input().split()))
    C = Point(*map(float, raw_input().split()))

    triangle = Triangle(A, B, C)

    # calculate least number of vertices
    n = math.pi / gcd(gcd(triangle.alpha, triangle.beta), triangle.gamma)

    # area of polygon
    print "%.6f" % float(n / 2 * (triangle.R ** 2) * math.sin(2 * math.pi / n))

    return 0

if __name__ == '__main__':
    main()