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-7;
struct Point {
  double x, y;
  Point(double x = 0, double y = 0) : x(x), y(y) {}
  Point rotate(double phi) {
    return Point(x * cos(phi) - y * sin(phi), x * sin(phi) + y * cos(phi));
  }
  Point operator-(Point p) { return Point(x - p.x, y - p.y); }
};
struct Segment {
  Point a, b;
  Segment(Point a, Point b) : a(a), b(b) {}
  Segment rotate(double phi) { return Segment(a.rotate(phi), b.rotate(phi)); }
  bool inside(Point p) {
    return (p.x + eps > min(a.x, b.x) && p.x - eps < max(a.x, b.x)) &&
           (p.y + eps > min(a.y, b.y) && p.y - eps < max(a.y, b.y));
  }
  Point intersect(Segment s) {
    double A1 = a.y - b.y;
    double B1 = b.x - a.x;
    double C1 = -A1 * a.x - B1 * a.y;
    double A2 = s.a.y - s.b.y;
    double B2 = s.b.x - s.a.x;
    double C2 = -A2 * s.a.x - B2 * s.a.y;
    double X = (B2 * C1 - C2 * B1) / (A2 * B1 - A1 * B2);
    double Y = (A2 * C1 - A1 * C2) / (A1 * B2 - A2 * B1);
    Point res(X, Y);
    if (inside(res) && s.inside(res)) return res;
    return Point(0, 0);
  }
};
int w, h, alpha;
vector<Point> intersections;
vector<Segment> segments, rotations;
bool cmp(Point a, Point b) {
  Point A = a - intersections[0];
  Point B = b - intersections[0];
  return A.x * B.y > A.y * B.x;
}
int main() {
  cin >> w >> h >> alpha;
  alpha %= 180;
  cout.precision(10);
  cout << fixed << showpoint;
  if (alpha == 0)
    cout << w * 1ll * h << endl;
  else if (alpha == 90)
    cout << min(w, h) * 1ll * min(w, h);
  else {
    Point a(-w / 2.0, h / 2.0);
    Point b(w / 2.0, h / 2.0);
    Point c(w / 2.0, -h / 2.0);
    Point d(-w / 2.0, -h / 2.0);
    segments.push_back(Segment(a, b));
    segments.push_back(Segment(b, c));
    segments.push_back(Segment(c, d));
    segments.push_back(Segment(d, a));
    for (int i = 0; i < 4; ++i) {
      rotations.push_back(segments[i].rotate(alpha * PI / 180.0));
    }
    for (int i = 0; i < 4; ++i) {
      for (int j = 0; j < 4; ++j) {
        Point res = segments[i].intersect(rotations[j]);
        if (fabs(res.x) > eps && fabs(res.y) > eps) {
          intersections.push_back(res);
        }
      }
    }
    int mn = 0;
    for (int i = 1; i < (int)intersections.size(); ++i) {
      if ((intersections[i].y - eps < intersections[mn].y) ||
          (fabs(intersections[i].y - intersections[mn].y) < eps &&
           intersections[i].x - eps < intersections[mn].x))
        mn = i;
    }
    swap(intersections[0], intersections[mn]);
    sort(intersections.begin() + 1, intersections.end(), cmp);
    intersections.push_back(intersections[0]);
    double square = 0;
    for (int i = 0; i + 1 < (int)intersections.size(); ++i)
      square += (intersections[i].x + intersections[i + 1].x) *
                (intersections[i].y - intersections[i + 1].y);
    square = fabs(square) / 2;
    cout << square << endl;
  }
  return 0;
}