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;
const double EPS = 1e-12;
struct point {
  double x, y;
  point(double x, double y) : x(x), y(y){};
  point() : x(0.0), y(0.0){};
  point operator*(const double &o) const { return point(o * x, o * y); }
  point operator-(const point &o) const { return point(x - o.x, y - o.y); }
  point operator+(const point &o) const { return point(x + o.x, y + o.y); }
  bool operator<(const point &o) const {
    return (fabs(x - o.x) < EPS) ? y < o.y : x < o.x;
  }
};
int w, h, a;
double theta;
point rotate(point a) {
  return point(a.x * cos(theta) - a.y * sin(theta),
               a.x * sin(theta) + a.y * cos(theta));
}
double cross(point a, point b) { return a.x * b.y - a.y * b.x; }
bool isintersect(point a, point b, point p, point q) {
  if (cross(b - a, p - a) * cross(b - a, q - a) > 0.0) return false;
  if (cross(p - q, a - q) * cross(p - q, b - q) > 0.0) return false;
  return true;
}
point find_intersect(point a, point b, point c, point d) {
  b = b - a;
  d = c - d;
  c = c - a;
  return a + b * (cross(c, d) / cross(b, d));
}
void chull(vector<point> &vp, vector<point> &vp2) {
  sort(vp.begin(), vp.end());
  vector<point> t2;
  vp2.push_back(vp[0]);
  for (int i = 1; i < vp.size(); i++) {
    while (vp2.size() >= 2) {
      int k = vp2.size();
      if (cross(vp2[k - 1] - vp2[k - 2], vp[i] - vp2[k - 2]) <= 0) {
        vp2.pop_back();
      } else {
        break;
      }
    }
    vp2.push_back(vp[i]);
  }
  vp2.pop_back();
  t2.push_back(vp.back());
  for (int i = vp.size() - 2; i >= 0; i--) {
    while (t2.size() >= 2) {
      int k = t2.size();
      if (cross(t2[k - 1] - t2[k - 2], vp[i] - t2[k - 2]) <= 0) {
        t2.pop_back();
      } else {
        break;
      }
    }
    t2.push_back(vp[i]);
  }
  copy(t2.begin(), t2.end(), back_inserter(vp2));
  return;
}
double unsigned_area(vector<point> &vp) {
  double sum = 0;
  for (int i = 0; i < vp.size(); i++) {
    int ni = (i + 1) % vp.size();
    sum += cross(vp[i], vp[ni]);
  }
  return sum / 2.0;
}
point m[4];
point n[4];
int main() {
  scanf("%d%d%d", &w, &h, &a);
  if (w < h) swap(w, h);
  if (a > 90) a = 180 - a;
  theta = a * acos(-1.0) / 180;
  if (a == 0) {
    printf("%I64d\n", (long long)w * (long long)h);
  } else if (a == 90) {
    printf("%I64d\n", (long long)h * (long long)h);
  } else {
    double w2 = (double)w / 2.0;
    double h2 = (double)h / 2.0;
    m[0] = point(w2, h2);
    m[1] = point(w2, -h2);
    m[2] = point(-w2, -h2);
    m[3] = point(-w2, h2);
    for (int i = 0; i < 4; i++) {
      n[i] = rotate(m[i]);
    }
    vector<point> vp;
    for (int i = 0; i < 4; i++) {
      int ni = (i + 1) % 4;
      for (int j = 0; j < 4; j++) {
        int nj = (j + 1) % 4;
        if (isintersect(m[i], m[ni], n[j], n[nj])) {
          point tmp = find_intersect(m[i], m[ni], n[j], n[nj]);
          vp.push_back(tmp);
        }
      }
    }
    vector<point> vp2;
    chull(vp, vp2);
    double ans = fabs(unsigned_area(vp2));
    printf("%.9lf\n", ans);
  }
  return 0;
}