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;
double INF = 1e100;
double EPS = 1e-12;
const double PI = acos(-1.0);
struct PT {
  double x, y;
  PT() {}
  PT(double x, double y) : x(x), y(y) {}
  PT(const PT &p) : x(p.x), y(p.y) {}
  PT operator+(const PT &p) const { return PT(x + p.x, y + p.y); }
  PT operator-(const PT &p) const { return PT(x - p.x, y - p.y); }
  PT operator*(double c) const { return PT(x * c, y * c); }
  PT operator/(double c) const { return PT(x / c, y / c); }
};
double dot(PT p, PT q) { return p.x * q.x + p.y * q.y; }
double dist2(PT p, PT q) { return dot(p - q, p - q); }
double cross(PT p, PT q) { return p.x * q.y - p.y * q.x; }
ostream &operator<<(ostream &os, const PT &p) {
  os << "(" << p.x << "," << p.y << ")";
}
PT RotateCCW90(PT p) { return PT(-p.y, p.x); }
PT RotateCW90(PT p) { return PT(p.y, -p.x); }
PT RotateCCW(PT p, double t) {
  return PT(p.x * cos(t) - p.y * sin(t), p.x * sin(t) + p.y * cos(t));
}
PT ProjectPointLine(PT a, PT b, PT c) {
  return a + (b - a) * dot(c - a, b - a) / dot(b - a, b - a);
}
PT ProjectPointSegment(PT a, PT b, PT c) {
  double r = dot(b - a, b - a);
  if (fabs(r) < EPS) return a;
  r = dot(c - a, b - a) / r;
  if (r < 0) return a;
  if (r > 1) return b;
  return a + (b - a) * r;
}
double DistancePointSegment(PT a, PT b, PT c) {
  return sqrt(dist2(c, ProjectPointSegment(a, b, c)));
}
double DistancePointPlane(double x, double y, double z, double a, double b,
                          double c, double d) {
  return fabs(a * x + b * y + c * z - d) / sqrt(a * a + b * b + c * c);
}
bool LinesParallel(PT a, PT b, PT c, PT d) {
  return fabs(cross(b - a, c - d)) < EPS;
}
bool LinesCollinear(PT a, PT b, PT c, PT d) {
  return LinesParallel(a, b, c, d) && fabs(cross(a - b, a - c)) < EPS &&
         fabs(cross(c - d, c - a)) < EPS;
}
bool SegmentsIntersect(PT a, PT b, PT c, PT 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;
}
PT ComputeLineIntersection(PT a, PT b, PT c, PT 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);
}
int cmp(double a, double b = 0) {
  if (fabs(a - b) < 1e-8) return 0;
  if (a < b) return -1;
  return 1;
}
int cmp2(PT p, PT q) {
  if (int t = ::cmp(p.x, q.x)) return t;
  return ::cmp(p.y, q.y);
}
double angle(PT v1, PT v2) { return atan2(cross(v1, v2), dot(v1, v2)); }
bool operator<(PT a, PT b) {
  double v;
  v = atan2(a.y, a.x) - atan2(b.y, b.x);
  if (v < 0.0) return true;
  return false;
}
int main() {
  double w, h, alfa;
  vector<PT> p, q, poly, r;
  cin >> w >> h >> alfa;
  if (abs(alfa - 0.0) < EPS || abs(alfa - 180.0) < EPS) {
    printf("%.9lf\n", w * h);
    return 0;
  }
  alfa = (alfa * PI) / 180.0;
  q.push_back(PT(-w / 2.0, h / 2.0));
  q.push_back(PT(-w / 2.0, -h / 2.0));
  q.push_back(PT(w / 2.0, -h / 2.0));
  q.push_back(PT(w / 2.0, h / 2.0));
  p.resize(4);
  for (int i = 0; i < 4; i++) p[i] = RotateCCW(q[i], alfa);
  set<PT> myset;
  set<PT>::iterator it;
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++)
      if (SegmentsIntersect(p[i], p[(i + 1) % 4], q[j], q[(j + 1) % 4])) {
        PT t =
            ComputeLineIntersection(p[i], p[(i + 1) % 4], q[j], q[(j + 1) % 4]);
        myset.insert(t);
      }
  }
  for (it = myset.begin(); it != myset.end(); it++) {
    poly.push_back(*it);
  }
  double ans = 0.0;
  int s = poly.size();
  for (int i = 0; i < s; i++) ans += cross(poly[i], poly[(i + 1) % s]);
  ans = abs(ans) / 2.0;
  printf("%.9lf\n", ans);
  return 0;
}