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:
from math import *

class Point:
    x, y = 0, 0
    def __init__(self, x, y):
        self.x, self.y = x, y
    def __eq__(self, p):
        return self.x == p.x and self.y == p.y
    def __hash__(self):
        return hash((self.x, self.y))
    def rotate(self, a):
        a *= pi / 180
        x, y = self.x, self.y
        return Point(x * cos(a) - y * sin(a), x * sin(a) + y * cos(a))

class LineSegment:
    a, b = Point(0, 0), Point(0, 0)
    def __init__(self, a, b):
        self.a = a
        self.b = b
    def intersect(self, line):
        x1, y1, x2, y2 = self.a.x, self.a.y, self.b.x, self.b.y
        x3, y3, x4, y4 = line.a.x, line.a.y, line.b.x, line.b.y
        den = (x4 - x3) * (y2 - y1) - (y4 - y3) * (x2 - x1)
        if den == 0:
            return None
        t2 = 1. * ((y3 - y1)  * (x2 - x1) - (x3 - x1) * (y2 - y1)) / den
        t1 = 1. * ((y3 - y1) * (x4 - x3) - (y4 - y3) * (x3 - x1)) / den
        if t1 < 0 or t1 > 1 or t2 < 0 or t2 > 1:
            return None
        return Point(x1 * (1 - t1) + x2 * t1, y1 * (1 - t1) + y2 * t1)
        
def area(polygon):
    total = 0.
    n = len(polygon)
    for i in range(n):
        j = (i + 1) % n
        total += polygon[i].x * polygon[j].y - polygon[i].y * polygon[j].x
    return abs(total) / 2

def sort(polygon):
    ref = polygon[0]
    for point in polygon:
        if point.y < ref.y or point.y == ref.y and point.x < ref.x:
            ref = point
    polygon.sort(key = lambda p : (atan2(p.y - ref.y, p.x - ref.x), p.x))

def main():
    w, h, a = (int(x) for x in raw_input().split())
    original = [
        Point(w / 2., h / 2.),
        Point(w / 2., -h / 2.),
        Point(-w / 2., -h / 2.),
        Point(-w / 2., h / 2.)
    ]
    rotated = [x.rotate(a) for x in original]
    intersection = set()
    for i in range(4):
        j = (i + 1) % 4
        line = LineSegment(original[i], original[j])
        for k in range(4):
            l = (k + 1) % 4
            intersect = line.intersect(LineSegment(rotated[k], rotated[l]))
            if intersect is None:
                continue
            intersection.add(intersect)
    intersection = list(intersection)
    sort(intersection)
    print area(intersection)
    
if __name__ == "__main__":
    main()