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-9;
const double pi = acos(-1);
struct R2vec {
  double x, y;
  R2vec() {}
  R2vec(double x, double y) : x(x), y(y) {}
  inline R2vec operator+(const R2vec &w) { return R2vec(x + w.x, y + w.y); }
  inline R2vec operator-(const R2vec &w) { return R2vec(x - w.x, y - w.y); }
  inline R2vec operator-() { return R2vec(-x, -y); }
  inline double operator*(const R2vec &w) {
    return (double)x * w.x + (double)y * w.y;
  }
  inline R2vec operator*(double w) { return R2vec(x * w, y * w); }
  inline R2vec operator/(double w) { return R2vec(x / w, y / w); }
  inline double operator%(const R2vec &w) {
    return (double)x * w.y - (double)y * w.x;
  }
  inline double operator~() { return (double)x * x + (double)y * y; }
  inline bool operator<(const R2vec &w) const {
    return fabs(x - w.x) > eps ? x - w.x < -eps : y - w.y < -eps;
  }
  inline bool operator==(const R2vec &w) {
    return fabs(x - w.x) < eps && fabs(y - w.y) < eps;
  }
  inline bool operator!=(const R2vec &w) {
    return !(fabs(x - w.x) < eps && fabs(y - w.y) < eps);
  }
};
inline ostream &operator<<(ostream &out, const R2vec &w) {
  return out << '[' << (fabs(w.x) < eps ? 0 : w.x) << ','
             << (fabs(w.y) < eps ? 0 : w.y) << ']';
}
double dot(R2vec p, R2vec q) { return p.x * q.x + p.y * q.y; }
double dist2(R2vec p, R2vec q) { return dot(p - q, p - q); }
double cross(R2vec p, R2vec q) { return p.x * q.y - p.y * q.x; }
R2vec RotateCCW(R2vec p, double t) {
  return R2vec(p.x * cos(t) - p.y * sin(t), p.x * sin(t) + p.y * cos(t));
}
bool LinesParallel(R2vec a, R2vec b, R2vec c, R2vec d) {
  return fabs(cross(b - a, c - d)) < eps;
}
bool LinesCollinear(R2vec a, R2vec b, R2vec c, R2vec d) {
  return LinesParallel(a, b, c, d) && fabs(cross(a - b, a - c)) < eps &&
         fabs(cross(c - d, c - a)) < eps;
}
bool SegmentsIntersect(R2vec a, R2vec b, R2vec c, R2vec d) {
  if (LinesCollinear(a, b, c, d)) {
    if (dist2(a, c) < eps || dist2(a, d) < eps || dist2(b, c) < eps ||
        dist2(b, d) < eps)
      return true;
    if (dot(c - a, c - b) > 0 && dot(d - a, d - b) > 0 && dot(c - b, d - b) > 0)
      return false;
    return true;
  }
  if (cross(d - a, b - a) * cross(c - a, b - a) > 0) return false;
  if (cross(a - c, d - c) * cross(b - c, d - c) > 0) return false;
  return true;
}
R2vec ComputeLineIntersection(R2vec a, R2vec b, R2vec c, R2vec d) {
  b = b - a;
  d = c - d;
  c = c - a;
  assert(dot(b, b) > eps && dot(d, d) > eps);
  return a + b * cross(c, d) / cross(b, d);
}
struct ConvexHull {
  vector<R2vec> hull;
  ConvexHull() {}
  ConvexHull(vector<R2vec> cloud) {
    sort((cloud).begin(), (cloud).end());
    vector<R2vec> up, down;
    for (auto &w : cloud) {
      while (((int)(up).size()) > 1 &&
             (up.back() - up[((int)(up).size()) - 2]) % (w - up.back()) > eps)
        up.pop_back();
      up.push_back(w);
      while (((int)(down).size()) > 1 &&
             (down.back() - down[((int)(down).size()) - 2]) %
                     (w - down.back()) <
                 -eps)
        down.pop_back();
      down.push_back(w);
    }
    hull = up;
    for (int i = ((int)(down).size()) - 2; i; --i) hull.push_back(down[i]);
  }
};
double ComputeSignedArea(vector<R2vec> &p) {
  double area = 0.0;
  for (int i = 0; i < ((int)(p).size()); i++) {
    int j = (i + 1) % ((int)(p).size());
    area += p[i] % p[j];
  }
  return area / 2.0;
}
double ComputeArea(vector<R2vec> &p) { return fabs(ComputeSignedArea(p)); }
struct Segment {
  R2vec a, b;
  Segment() {}
  Segment(R2vec a, R2vec b) : a(a), b(b) {}
};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0), cout.tie();
  double w, h;
  int a;
  cin >> w >> h >> a;
  a %= 180;
  if (a == 0)
    return !(cout << fixed << fixed << setprecision(9) << w * h << '\n');
  double t = (double)a * pi / 180.0;
  vector<Segment> s0, s1;
  s0.emplace_back(R2vec(w / 2, h / 2), R2vec(w / 2, -h / 2));
  s0.emplace_back(R2vec(-w / 2, h / 2), R2vec(-w / 2, -h / 2));
  s0.emplace_back(R2vec(-w / 2, h / 2), R2vec(w / 2, h / 2));
  s0.emplace_back(R2vec(-w / 2, -h / 2), R2vec(w / 2, -h / 2));
  for (auto &seg : s0) {
    R2vec a = RotateCCW(seg.a, t);
    R2vec b = RotateCCW(seg.b, t);
    s1.emplace_back(a, b);
  }
  vector<R2vec> pts;
  for (auto &seg0 : s0)
    for (auto &seg1 : s1) {
      if (!SegmentsIntersect(seg0.a, seg0.b, seg1.a, seg1.b)) continue;
      auto pp = ComputeLineIntersection(seg0.a, seg0.b, seg1.a, seg1.b);
      pts.emplace_back(pp);
    }
  ConvexHull ch(pts);
  cout << fixed << setprecision(9) << ComputeArea(ch.hull) << '\n';
  return 0;
}