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.io.*;
import java.util.*;

public class A {

    static class Assert {
        static void check(boolean e) {
            if (!e) {
                throw new Error();
            }
        }
    }

    Scanner in;
    PrintWriter out;

    static class Point {

        final double x;

        final double y;

        Point(double x, double y) {
            this.x = x;
            this.y = y;
        }

        Point neg() {
            return new Point(-x, -y);
        }
    }

    Point[] appendNeg(Point a[]) {
        Point result[] = new Point[a.length * 2];
        for (int i = 0; i < a.length; i++) {
            result[i] = a[i];
        }
        for (int i = 0; i < a.length; i++) {
            result[i + a.length] = a[i].neg();
        }
        return result;
    }

    double square(Point a[]) {
        double s = 0;
        for (int i = 0; i < a.length; i++) {
            int i2 = (i + 1) % a.length;
            s += (a[i2].y + a[i].y) * (a[i2].x - a[i].x);
        }
        return Math.abs(s / 2);
    }

    void solve() {
        double w = in.nextInt();
        double h = in.nextInt();
        double alpha = in.nextInt();
        if (h > w) {
            double t = h;
            h = w;
            w = t;
        }
        if (alpha > 90) {
            alpha = 180 - alpha;
        }
        Assert.check(0 < h && h <= w);
        Assert.check(0 <= alpha && alpha <= 90);
        if (alpha == 0) {
            out.println(w * h);
            return;
        }
        if (alpha == 90) {
            out.println(h * h);
            return;
        }
        alpha = alpha / 180 * Math.PI;
        double horShift = h / 2 * Math.tan(alpha / 2);
        Assert.check(0 < horShift && horShift < w / 2);
        double topHorRem = w / 2 - horShift;
        double topVertRem = topHorRem * Math.tan(alpha);
        if (topVertRem < h) {
            double vertShift = w / 2 * Math.tan(alpha / 2);
            Assert.check(vertShift < h / 2);
            Assert.check(vertShift + h / 2 > topVertRem);
            double botVerRem = h / 2 - vertShift;
            double botHorRem = botVerRem * Math.tan(alpha);
            Point points[] = {
                new Point(-horShift, h / 2),
                new Point(-w / 2, h / 2 - topVertRem),
                new Point(-w / 2, -vertShift),
                new Point(-w / 2 + botHorRem, -h / 2)
            };
            out.println(square(appendNeg(points)));
        } else {
            double botHorRem = topHorRem - h / Math.tan(alpha);
            Point points[] = {
                new Point(-horShift, h / 2),
                new Point(-w / 2 + botHorRem, -h / 2)
            };
            out.println(square(appendNeg(points)));
        }
    }

    void run() {
        in = new Scanner(System.in);
        out = new PrintWriter(System.out);
        try {
            solve();
        } finally {
            out.close();
        }
    }

    public static void main(String args[]) {
        new A().run();
    }
}