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
def mod(v):
    return math.sqrt(v[0] ** 2 + v[1] ** 2)
def cal_angle (ax1, ay1, bx1, by1, cx1, cy1):
    vab = [bx1 - ax1, by1 - ay1]
    vac = [cx1 - ax1, cy1 - ay1]
    vbc = [cx1 - bx1, cy1 - by1]
    x = round((mod(vab) ** 2 + mod(vac) ** 2 - mod(vbc) ** 2) / (2 * mod(vab) * mod(vac)), 9)
    return math.acos(x)
def gcd_float(a, b):
    if abs(b) < 1e-4:
        return a
    if abs(a) < 1e-4:
        return b
    return gcd_float(b, a % b)

x1, y1 = map(float, input().split())
x2, y2 = map(float, input().split())
x3, y3 = map(float, input().split())

a = ((y2-y1)*(y3*y3-y1*y1+x3*x3-x1*x1)-(y3-y1)*(y2*y2-y1*y1+x2*x2-x1*x1))/(2.0*((x3-x1)*(y2-y1)-(x2-x1)*(y3-y1)))
b = ((x2-x1)*(x3*x3-x1*x1+y3*y3-y1*y1)-(x3-x1)*(x2*x2-x1*x1+y2*y2-y1*y1))/(2.0*((y3-y1)*(x2-x1)-(y2-y1)*(x3-x1)))
r = mod([a - x1, b - y1]) ** 2

angle1, angle2 = cal_angle(a, b, x1, y1, x2, y2), cal_angle(a, b, x2, y2, x3, y3)
angle3 = 2 * math.pi - angle1 - angle2

angle = gcd_float(gcd_float(angle1, angle2), angle3)
cnt = 2 * math.pi / angle
s = math.sin(angle ) * r / 2
print('%.8f' %(s * cnt))