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, y;
};
double operator*(point p1, point p2) { return p1.x * p2.y - p1.y * p2.x; }
point operator+(point p1, point p2) {
  point p;
  p.x = p1.x + p2.x;
  p.y = p1.y + p2.y;
  return p;
}
point operator-(point p1, point p2) {
  point p;
  p.x = p1.x - p2.x;
  p.y = p1.y - p2.y;
  return p;
}
bool at_right(point p1, point p2, point p) { return (p - p1) * (p2 - p1) <= 0; }
bool intersect(point p1, point p2, point p3, point p4, point &p) {
  if (((p3 - p1) * (p2 - p1)) * ((p4 - p1) * (p2 - p1)) >= 0) return 0;
  double D, D1, D2;
  D = (p1 - p2) * (p4 - p3);
  D1 = (p3 * p4) * (p1.x - p2.x) - (p1 * p2) * (p3.x - p4.x);
  D2 = (p1 * p2) * (p4.y - p3.y) - (p3 * p4) * (p2.y - p1.y);
  p.x = D1 / D;
  p.y = D2 / D;
  return 1;
}
double getarea(point p1, point p2, point p3) {
  return fabs((p1 - p2) * (p3 - p2)) / 2.0;
}
int main() {
  int SN, PM, i, j;
  vector<point> A, B, temp;
  double area = 0.0;
  point pp;
  int w, h, a;
  while (scanf("%d%d%d", &w, &h, &a) != EOF) {
    A.clear();
    PM = 4;
    pp.x = w / 2.0;
    pp.y = h / 2.0;
    A.push_back(pp);
    pp.x = -w / 2.0;
    pp.y = h / 2.0;
    A.push_back(pp);
    pp.x = -w / 2.0;
    pp.y = -h / 2.0;
    A.push_back(pp);
    pp.x = w / 2.0;
    pp.y = -h / 2.0;
    A.push_back(pp);
    SN = 4;
    double angle = a * acos(-1.0) / 180.0;
    B.clear();
    for (i = 0; i < SN; ++i) {
      pp.x = A[i].x * cos(angle) + A[i].y * (-sin(angle));
      pp.y = A[i].x * sin(angle) + A[i].y * cos(angle);
      B.push_back(pp);
    }
    B.push_back(B[0]);
    for (i = 0; i < SN; ++i) {
      temp.clear();
      if (A.size() < 3) break;
      for (j = 0; j < A.size() - 1; ++j) {
        if (intersect(B[i], B[i + 1], A[j], A[j + 1], pp)) temp.push_back(pp);
        if (at_right(B[i], B[i + 1], A[j + 1])) temp.push_back(A[j + 1]);
      }
      if (intersect(B[i], B[i + 1], A[j], A[0], pp)) temp.push_back(pp);
      if (at_right(B[i], B[i + 1], A[0])) temp.push_back(A[0]);
      A = temp;
    }
    double Ans = 0;
    if (A.size() > 2)
      for (i = 1; i < A.size() - 1; ++i) Ans += getarea(A[0], A[i], A[i + 1]);
    printf("%.8f\n", Ans);
  }
  return 0;
}