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

Solution:
import java.util.Scanner;
import java.lang.*;
import java.util.*;
import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.geom.Area;
import java.awt.geom.Rectangle2D;
import java.awt.geom.PathIterator;

public class c168 {
    public static double area(Area area) {

        double res = 0.0;
        double res1 = res;
        float x0,x1,x2,x3;
        float y0,y1,y2,y3;

        float[] sc = new float[6];
        float[] cc = new float[6];
        float[] pc = new float[6];

        for (PathIterator i = area.getPathIterator(null); !i.isDone(); i.next()) {
            int type = i.currentSegment(cc);

            switch (type) {
            case PathIterator.SEG_MOVETO:
                sc[0] = pc[0] = cc[0];
                sc[1] = pc[1] = cc[1];
                break;
            case PathIterator.SEG_CUBICTO:
                // System.out.println("CUBE");

                x0 = pc[0];
                y0 = pc[1];

                x1 = cc[0];
                y1 = cc[1];

                x2 = cc[2];
                y2 = cc[3];

                x3 = cc[4];
                y3 = cc[5];

                res1 = 0.3 * y1 * x0 - 0.15 * y1 * x2 - 0.15 * y1 * x3
                        - 0.3 * y0 * x1 - 0.15 * y0 * x2 - 0.05 * y0 * x3
                        + 0.15 * y2 * x0 + 0.15 * y2 * x1 - 0.3 * y2 * x3
                        + 0.05 * y3 * x0 + 0.15 * y3 * x1 + 0.3 * y3 * x2;

                res += res1;
                // System.out.println("cubeto> "+res1+" >> "+res);

                pc[0] = cc[4];
                pc[1] = cc[5];

                break;
            case PathIterator.SEG_QUADTO:
                x0 = pc[0];
                y0 = pc[1];

                x1 = cc[0];
                y1 = cc[1];

                x2 = cc[2];
                y2 = cc[3];

                    res1 = (-x0*y1 + y0*x1 - 0.5 * x0*y2 - x1*y2 + 0.5 *x2*y0 + x2*y1)/3.0;
                res += res1;

                pc[0] = cc[2];
                pc[1] = cc[3];
                // System.out.println("QUAD");
            case PathIterator.SEG_LINETO:
                // res += x(i)*y(i+1) - x(i+1)*y(i) old
                // x(i) = pc[0]
                // x(i+1) = cc[0]
                // y(i) = pc[1]
                // y(i+1) = cc[1]
                // x(0) = sc[0]
                // y(0) = sc[1]

                // res+=pc[0]*cc[1]-cc[0]*pc[1];

                res1 = (pc[1] + cc[1]) * (pc[0] - cc[0]) / 2.0;
                res += res1;
                // System.out.println("lineto> "+res1+" >> "+res);

                pc[0] = cc[0];
                pc[1] = cc[1];
                break;
            case PathIterator.SEG_CLOSE:
                // System.out.println(cc[0]+","+cc[1]+" -> "+sc[0]+","+sc[1]);
                res1 = (pc[1] + sc[1]) * (pc[0] - sc[0]) / 2.0;
                res += res1;
                // System.out.println("segclose> "+res1+" >> "+res);
                break;
            } // switch

        } // for

        // res/=2.0;
        return Math.abs(res);
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double w, h, a;
        w = in.nextDouble();
        h = in.nextDouble();
        a = in.nextDouble();
        
        AffineTransform a1 = AffineTransform.getRotateInstance(Math.toRadians((double)a), 0, 0);

        Rectangle2D r1 = new Rectangle2D.Double();
        r1.setRect(-w/2.0, -h/2.0, w, h);
        
        Rectangle2D r2 = new Rectangle2D.Double();
        r2.setRect(-w/2.0, -h/2.0, w, h);
        
        Area ar1 = new Area(r1);
        Area ar2 = new Area(r2);
        
        ar2.transform(a1);
        ar1.intersect(ar2);
        
        System.out.print(area(ar1));
    }
}