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 sys, math


def slope(point1, point2):
    if point2[0]-point1[0] != 0:
        return (point2[1]-point1[1])/((point2[0]-point1[0]))
    word = "undef"
    return word
def dist(point1, point2):
    return math.sqrt((point2[1]-point1[1])**2+(point2[0]-point1[0])**2)

def gcd(x, y):
    eps = 10**(-4)
    while (abs(x)>eps and abs(y)>eps):
        if x>y:
                x -= math.floor(x/y)*y;
        else:
                y -= math.floor(y/x)*x;
    
    return x+y;

lines = sys.stdin.readlines()
A_point = lines[0].split()
B_point = lines[1].split()
C_point = lines[2].split()

A_pt_x = (float(A_point[0])); A_pt_y = (float(A_point[1]))
B_pt_x = (float(B_point[0])); B_pt_y = (float(B_point[1]))
C_pt_x = (float(C_point[0])); C_pt_y = (float(C_point[1]))

A = [A_pt_x, A_pt_y]; B = [B_pt_x, B_pt_y]; C = [C_pt_x, C_pt_y]

slope_start = [slope(A,B), slope(B,C), slope(C,A)]
slopes=[]
for f in slope_start:
    if f=="undef":
        slopes.append(0)
    elif f==0:
        slopes.append("undef")
    else:
        slopes.append(-1*(1/f))

AB_perp_point = [(A_pt_x+B_pt_x)/2, (A_pt_y+B_pt_y)/2]
BC_perp_point = [(B_pt_x+C_pt_x)/2, (B_pt_y+C_pt_y)/2]
AC_perp_point = [(A_pt_x+C_pt_x)/2, (A_pt_y+C_pt_y)/2]

perp_points = [AB_perp_point, BC_perp_point, AC_perp_point]


perp_b = []
for f in range(len(slopes)):
    if slopes[f] == "undef":
        perp_b.append("none")
    else:
        perp_b.append(-1*slopes[f]*perp_points[f][0]+perp_points[f][1])

perp = []
    
for f in range(len(slopes)):
    if slopes[f]!= "undef":
        perp.append([slopes[f], perp_b[f]])


perp_1 = perp[0]
perp_2 = perp[1]

#perp_1 = [m_1,b_1], perp_2 = [m_2,b_2]

x_circ = (perp_2[1] - perp_1[1])/(perp_1[0] - perp_2[0])
y_circ = perp_1[0]*x_circ+perp_1[1]
circ = [x_circ, y_circ]


c_seg = dist(A,B)
a_seg = dist(B,C)
b_seg = dist(A,C)

A_ang = math.acos((b_seg**2+c_seg**2-a_seg**2)/(2*b_seg*c_seg))
B_ang = math.acos((a_seg**2+c_seg**2-b_seg**2)/(2*a_seg*c_seg))
C_ang = math.acos((a_seg**2+b_seg**2-c_seg**2)/(2*a_seg*b_seg))
angles = [A_ang, B_ang, C_ang]

gcd = gcd(angles[0], gcd(angles[1], angles[2]))



gcd

n = math.ceil(math.pi/gcd)


R = dist(circ, A)

area = (n/2)*(R**2)*math.sin((2*math.pi)/n)


print(area)