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 pt {
  double x, y;
  pt operator-(const pt &a) const { return {x - a.x, y - a.y}; }
  pt operator+(const pt &a) const { return {x + a.x, y + a.y}; }
  pt operator*(const double &k) const { return {x * k, y * k}; }
};
double mod(const pt &a) { return sqrt(a.x * a.x + a.y * a.y); }
double cross(const pt &a, const pt &b) { return a.x * b.y - a.y * b.x; }
pt corte(const pt &a, const pt &b, const pt &c, const pt &d) {
  if (fabs(cross(b - a, d - c)) < 1e-7) return {1e10, 1e10};
  return a + (b - a) * (cross(c - a, d - c) / cross(b - a, d - c));
}
bool f(const pt &a, const pt &b) {
  if (a.x == b.x) return a.y < b.y;
  return a.x < b.x;
}
double area(pt &a, pt &b, pt &c) { return cross(b - a, c - a); }
void convex_hull(vector<pt> &v) {
  vector<pt> aux = v;
  sort(aux.begin(), aux.end(), f);
  v.clear();
  int n = int(aux.size()), k = 0;
  v.resize(2 * n);
  for (int i = 0; i < n; i++) {
    while (k >= 2 and area(v[k - 2], v[k - 1], aux[i]) <= 0) k--;
    v[k++] = aux[i];
  }
  for (int i = n - 2, t = k; i >= 0; i--) {
    while (k > t and area(v[k - 2], v[k - 1], aux[i]) <= 0) k--;
    v[k++] = aux[i];
  }
  v.resize(k - 1);
}
double arg(const pt &a) { return atan2(a.y, a.x); }
int main() {
  double w, h, alfa;
  cin >> w >> h >> alfa;
  alfa *= acos(-1) / 180;
  pt pi[4], pf[4];
  pi[0] = {-w / 2, h / 2};
  pi[1] = {-w / 2, -h / 2};
  pi[2] = {w / 2, -h / 2};
  pi[3] = {w / 2, h / 2};
  for (int i = 0; i < 4; i++) {
    double t = arg(pi[i]);
    pf[i] = pt{cos(alfa + t), sin(alfa + t)} * mod(pi[i]);
  }
  vector<pt> ans;
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) {
      pt p = corte(pi[i], pi[(i + 1) % 4], pf[j], pf[(j + 1) % 4]);
      if (p.x == 1e10 and p.y == 1e10) continue;
      if (fabs(fabs(p.x) - w / 2) < 1e-5 and fabs(p.y) <= h / 2 or
          fabs(fabs(p.y) - h / 2) < 1e-5 and fabs(p.x) <= w / 2) {
        ans.push_back(p);
      }
    }
  }
  convex_hull(ans);
  int n = int(ans.size());
  double rpta = 0;
  for (int i = 0; i < n; i++) {
    rpta += fabs(cross(ans[i], ans[(i + 1) % n])) / 2;
  }
  printf("%.10lf\n", rpta);
  return 0;
}