Problem: You are given two rectangles on a plane. The centers of both rectangles are located in the origin of coordinates (meaning the center of the rectangle's symmetry). The first rectangle's sides are parallel to the coordinate axes: the length of the side that is parallel to the Ox axis, equals w, the length of the side that is parallel to the Oy axis, equals h. The second rectangle can be obtained by rotating the first rectangle relative to the origin of coordinates by angle α.

<image>

Your task is to find the area of the region which belongs to both given rectangles. This region is shaded in the picture.

Input

The first line contains three integers w, h, α (1 ≤ w, h ≤ 106; 0 ≤ α ≤ 180). Angle α is given in degrees.

Output

In a single line print a real number — the area of the region which belongs to both given rectangles.

The answer will be considered correct if its relative or absolute error doesn't exceed 10 - 6.

Examples

Input

1 1 45


Output

0.828427125


Input

6 4 30


Output

19.668384925

Note

The second sample has been drawn on the picture above.

Solution (in PYTHON):

Solution:
import sys, math

def cross(x1, x2, y1, y2):
    a1 = (list(x1))
    a2 = (list(x2))
    b1 = (list(y1))
    b2 = (list(y2))
    a2[0] -= a1[0]
    a2[1] -= a1[1]
    b2[0] -= b1[0]
    b2[1] -= b1[1]
    ndet = ((a2[0]*b2[1])-(a2[1]*b2[0]))
    if ndet == 0:
        return None
    ta = 1.0/ndet * (+b2[1]*(b1[0]-a1[0]) + -b2[0]*(b1[1]-a1[1]))
    tb = 1.0/ndet * (+a2[1]*(b1[0]-a1[0]) + -a2[0]*(b1[1]-a1[1]))
    if 0 <= ta <= 1 and 0 <= tb <= 1:
        return (a1[0] + a2[0]*ta, a1[1] + a2[1]*ta)
    else:
        return False

w, h, a = [float(i) for i in sys.stdin.read().strip().split(' ')]

if h > w:
    w, h = h, w
if a > 90:
    a = 180 - a
a = (a / 180.0) * math.pi

res = w * h
if a > 0:
    points = [(-w/2, -h/2), (-w/2, h/2), (w/2, h/2), (w/2, -h/2)]
    for i in points[:]:
        points += [(i[0]*math.cos(a) - i[1]*math.sin(a), i[0]*math.sin(a) + i[1]*math.cos(a))]
    if not cross(points[6], points[7], points[2], points[3]):
        ps = [\
              cross(points[1], points[2], points[5], points[6]), \
              cross(points[1], points[2], points[4], points[7]), \
              cross(points[0], points[3], points[4], points[7]), \
              cross(points[0], points[3], points[5], points[6]), \
              ]
    else:
        ps = [\
              cross(points[1], points[2], points[5], points[6]), \
              cross(points[1], points[2], points[6], points[7]), \
              cross(points[2], points[3], points[6], points[7]), \
              cross(points[2], points[3], points[7], points[4]), \
              cross(points[3], points[0], points[7], points[4]), \
              cross(points[3], points[0], points[4], points[5]), \
              cross(points[0], points[1], points[4], points[5]), \
              cross(points[0], points[1], points[5], points[6]), \
              ]
    res = 0
    for a, b in zip(ps, ps[1:] + ps[:1]):
        res += (b[0]-a[0]) * (b[1]+a[1])/2

sys.stdout.write(str(abs(res)))