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 Point {
  double x, y;
  Point(double _x = 0, double _y = 0) { x = _x, y = _y; }
};
struct Line {
  double a, b, c;
  Line(double _a, double _b, double _c) { a = _a, b = _b, c = _c; }
  double calc(double x, double y) { return a * x + b * y + c; }
};
Point rotate(Point p, double ang) {
  return Point(cos(ang) * p.x - sin(ang) * p.y,
               sin(ang) * p.x + cos(ang) * p.y);
}
Line get(Point s, Point t) {
  double a = t.y - s.y;
  double b = s.x - t.x;
  double c = -a * s.x - b * s.y;
  return Line(a, b, c);
}
Point intersect(Line l1, Line l2) {
  double d = l1.a * l2.b - l1.b * l2.a;
  return Point((l1.b * l2.c - l1.c * l2.b) / d,
               (l1.c * l2.a - l1.a * l2.c) / d);
}
void cut(vector<Point> &p, Point s, Point t) {
  Line l1 = get(s, t);
  vector<Point> q;
  int n = p.size();
  p.push_back(p[0]);
  for (int i = 0; i < n; ++i) {
    double z1 = l1.calc(p[i].x, p[i].y);
    if (z1 < eps) {
      q.push_back(p[i]);
    }
    double z2 = l1.calc(p[i + 1].x, p[i + 1].y);
    if (z1 < eps && z2 > eps || z1 > eps && z2 < eps) {
      Line l2 = get(p[i], p[i + 1]);
      q.push_back(intersect(l1, l2));
    }
  }
  swap(p, q);
}
int w, h, a;
vector<Point> vp;
int main() {
  scanf("%d%d%d", &w, &h, &a);
  double ang = a / 180.0 * PI;
  vp.push_back(rotate(Point(w, h), ang));
  vp.push_back(rotate(Point(-w, h), ang));
  vp.push_back(rotate(Point(-w, -h), ang));
  vp.push_back(rotate(Point(w, -h), ang));
  cut(vp, Point(w, h), Point(-w, h));
  cut(vp, Point(-w, h), Point(-w, -h));
  cut(vp, Point(-w, -h), Point(w, -h));
  cut(vp, Point(w, -h), Point(w, h));
  vp.push_back(vp[0]);
  double area = 0;
  for (int i = 0; i < (int)vp.size() - 1; ++i) {
    area += (vp[i].x - vp[i + 1].x) * (vp[i + 1].y + vp[i].y);
  }
  printf("%.10f\n", 0.125 * area);
  return 0;
}