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;
public class Main {
	public static class Point {
		public double x, y;
	}
	public static class Line {
		public Point p1, p2;
	}
	public static double CrossX(Point a, Point b, Point c, Point d) {
		return (b.y - a.y) * (d.x - c.x) - (b.x - a.x) * (d.y - c.y);
	}
	public static int Intersect(Line l1, Line l2, Point p) {
		if ( (CrossX(l1.p1, l1.p2, l1.p1, l2.p1) * CrossX(l1.p1, l1.p2, l1.p1, l2.p2) >= 0)
			|| (CrossX(l2.p1, l2.p2, l2.p1, l1.p1) * CrossX(l2.p1, l2.p2, l2.p1, l1.p2) >= 0) ) {
			return 0;
		}
		double t = CrossX(l2.p1, l1.p2, l2.p1, l2.p2)
				/ CrossX(l1.p1, l1.p2, l2.p1, l2.p2);
		p.x = (l1.p1.x - l1.p2.x) * t + l1.p2.x;
		p.y = (l1.p1.y - l1.p2.y) * t + l1.p2.y;
		return 1;
	}
	public static void Rotate(Point p1, Point p2, double a) {
		p2.x = p1.x * Math.cos(a) - p1.y * Math.sin(a);
		p2.y = p1.x * Math.sin(a) + p1.y * Math.cos(a);
	}
	public static void main(String[] strings) {
		Scanner in = new Scanner( System.in );
		double w, h, a, area, pi = Math.acos(-1.0);
		final double eps = 1e-12;
		Point[] p = new Point[10];
		Point[] s = new Point[4];
		Point[] r = new Point[4];
		int i, j, pn;
		Line l1 = new Line(), l2 = new Line();
		for ( i = 0; i < 4; ++i ) {
			s[i] = new Point();
			r[i] = new Point();
		}
		for ( i = 0; i < 10; ++i ) {
			p[i] = new Point();
		}
		while ( in.hasNext() ) {
			w = in.nextDouble();
			h = in.nextDouble();
			a = in.nextDouble();
			if ( (a < eps) || (a > 180 - eps) ) {
				System.out.printf("%.12f\r\n", w * h);
				continue;
			}
			a = a * pi / 180.0;
			s[0].x = w / 2; s[0].y = h / 2;
			s[1].x = w / 2; s[1].y = -h / 2;
			s[2].x = -w / 2; s[2].y = -h / 2;
			s[3].x = -w / 2; s[3].y = h / 2;
			for ( i = 0; i < 4; ++i ) {
				Rotate(s[i], r[i], a);
			}
			pn = 0;
			for ( i = 0; i < 4; ++i ) {
				j = i;
				l1.p1 = s[i];
				l1.p2 = s[(i+1)%4];
				do {
					l2.p1 = r[j];
					l2.p2 = r[(j+1)%4];
					pn += Intersect(l1, l2, p[pn]);
					j = (j + 1) % 4;
				} while ( j != i );
			}
			p[pn] = p[0];
			area = 0;
			for ( i = 0; i < pn; ++i ) {
				area += p[i].y * p[i+1].x - p[i].x * p[i+1].y;
			}
			System.out.printf("%.12f\r\n", area / 2.0);
		}
		in.close();
	}
}