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:

/**
 * @author egaeus
 * @mail sebegaeusprogram@gmail.com
 * @veredict Not sended
 * @url <https://codeforces.com/problemset/problem/281/C>
 * @category ?
 * @date 1/07/2020
 **/

import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.geom.Area;
import java.awt.geom.PathIterator;
import java.awt.geom.Rectangle2D;
import java.io.*;
import java.util.*;
import java.util.List;

import static java.lang.Integer.*;
import static java.lang.Math.*;

public class CF281C {
    public static void main(String args[]) throws Throwable {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        for (String ln; (ln = in.readLine()) != null && !ln.equals(""); ) {
            StringTokenizer st = new StringTokenizer(ln);
            double W = parseInt(st.nextToken()), H = parseInt(st.nextToken()), A = parseInt(st.nextToken());
            Area area = new Area();
            area.add(new Area(new Rectangle2D.Double(-W/2, -H/2, W, H)));
            Area area2 = new Area();
            area2.transform(AffineTransform.getRotateInstance(Math.PI*A/180));
            area2.add(new Area(new Rectangle2D.Double(-W/2, -H/2, W, H)));
            area2.transform(AffineTransform.getRotateInstance(-Math.PI*A/180));
            area.intersect(area2);
            List<double[][]> points = getPolygons(area);
            System.out.println(area(points.get(0)));
        }
    }

    static double area(double[][] pts) {
        double res = 0;
        int n = pts.length;
        for (int i = 0, j = 1; i < n; i++, j = (j + 1) % n)
            res += pts[i][0] * pts[j][1] - pts[i][1] * pts[j][0];
        return Math.abs(res) / 2;
    }


    static List<double[][]> getPolygons(Shape sh) {
        java.util.List<double[][]> r = new ArrayList<double[][]>();
        java.util.List<double[]> z = new ArrayList<double[]>();
        double[] c = new double[6];
        for (PathIterator ph = sh.getPathIterator(null); !ph.isDone(); ph.next()) {
            if (ph.currentSegment(c) != PathIterator.SEG_CLOSE) z.add(new double[]{c[0], c[1]});
            else {
                r.add(z.toArray(new double[0][]));
                z.clear();
            }
        }
        return r;
    }

}