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 pi = acos(-1.0);
const double eps = 1e-8;
struct vec {
  double x, y, val;
  vec(double _x = 0, double _y = 0, double v = 0) : x(_x), y(_y), val(v) {}
  bool in(double px, double py) { return x * px + y * py <= val + eps; }
} a[8];
bool cmp(const vec& a, const vec& b) {
  return atan2(a.y, a.x) < atan2(b.y, b.x);
}
double cross(vec a, vec b) { return a.x * b.y - a.y * b.x; }
vector<vec> pts;
vec get_point(vec a, vec b) {
  if (a.x == 1 || a.x == -1) {
    double x = a.val / a.x, y = (b.val - x * b.x) / b.y;
    return vec(x, y);
  } else {
    double y = a.val / a.y, x = (b.val - y * b.y) / b.x;
    return vec(x, y);
  }
}
int main() {
  int w, h, alpha;
  cin >> w >> h >> alpha;
  if (alpha == 0 || alpha == 180) {
    cout << 1ll * w * h << endl;
    return 0;
  }
  double c = cos(alpha * pi / 180.0);
  double s = sin(alpha * pi / 180.0);
  a[0] = vec(1, 0, w);
  a[1] = vec(0, 1, h);
  a[2] = vec(-1, 0, w);
  a[3] = vec(0, -1, h);
  a[4] = vec(c, s, w);
  a[5] = vec(-s, c, h);
  a[6] = vec(-c, -s, w);
  a[7] = vec(s, -c, h);
  for (int i = 0; i < 4; ++i) {
    for (int j = 4; j < 8; ++j) {
      vec p = get_point(a[i], a[j]);
      bool flag = true;
      for (int k = 0; k < 8; ++k)
        if (!a[k].in(p.x, p.y)) flag = false;
      if (flag) pts.push_back(p);
    }
  }
  sort(pts.begin(), pts.end(), cmp);
  double area = 0;
  int sz = pts.size();
  for (size_t k = 0; k < sz; ++k) {
    area += cross(pts[k], pts[(k + 1) % sz]);
  }
  area = fabs(area) / 8.0;
  printf("%.9f\n", area);
}