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

Solution:
#include <bits/stdc++.h>
using namespace std;
struct point {
  double x;
  double y;
};
double w, h;
point rotate(point p, double theta) {
  point n;
  n.x = p.x * cos(theta) - p.y * sin(theta);
  n.y = p.x * sin(theta) + p.y * cos(theta);
  return n;
}
point lineLineIntersection(point A, point B, point C, point D) {
  double a1 = B.y - A.y;
  double b1 = A.x - B.x;
  double c1 = a1 * (A.x) + b1 * (A.y);
  double a2 = D.y - C.y;
  double b2 = C.x - D.x;
  double c2 = a2 * (C.x) + b2 * (C.y);
  double determinant = a1 * b2 - a2 * b1;
  if (determinant == 0) {
    point n;
    n.x = w / 2.0;
    n.y = h / 2.0;
    return n;
  } else {
    double x = (b2 * c1 - b1 * c2) / determinant;
    double y = (a1 * c2 - a2 * c1) / determinant;
    point n;
    n.x = x;
    n.y = y;
    return n;
  }
}
int main() {
  double al;
  cin >> w >> h >> al;
  if (al >= 90) al = 180 - al;
  if (w < h) {
    double jj = w;
    w = h;
    h = jj;
  }
  al = al / 180.0;
  al = al * ((2 * acos(0.0)));
  point a;
  a.x = -(w / 2.0);
  a.y = -(h / 2.0);
  point b;
  b.x = -(w / 2.0);
  b.y = h / 2.0;
  point c;
  c.x = (w / 2.0);
  c.y = h / 2.0;
  point d;
  d.x = (w / 2.0);
  d.y = -h / 2.0;
  double angle = 2 * atan(h / w);
  point p1 = rotate(a, al);
  point p2 = rotate(d, al);
  double deg = angle / ((2 * acos(0.0)));
  deg = deg * 180;
  if (al >= angle) {
    point inter = lineLineIntersection(p1, p2, b, c);
    point lower = lineLineIntersection(p1, p2, a, d);
    double area = 0.5 * (1.0 / tan(al)) * h * h + (w / 2.0 - inter.x) * h;
    area = h * w - 2 * area;
    printf("%0.9lf", area);
  } else {
    point inter = lineLineIntersection(p1, p2, c, d);
    point inter1 = lineLineIntersection(rotate(c, al), rotate(d, al), c, d);
    double y1;
    double x1;
    point inter3 = lineLineIntersection(rotate(c, al), rotate(d, al), b, c);
    x1 = w / 2.0 - (inter3.x);
    if (inter1.y < 0) {
      y1 = h / 2.0 + abs(inter1.y);
    } else {
      y1 = h / 2.0 - inter1.y;
    }
    double area = (x1 * y1);
    point inter2 = lineLineIntersection(a, d, p1, p2);
    area += (w / 2.0 - abs(inter2.x)) * (h / 2.0 + (inter.y));
    area = h * w - area;
    printf("%0.9lf", area);
  }
}