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.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));
}
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);
}
double ComputeSignedArea(const vector<PT> &p) {
  double area = 0;
  for (int i = 0; i < p.size(); i++) {
    int j = (i + 1) % p.size();
    area += p[i].x * p[j].y - p[j].x * p[i].y;
  }
  return area / 2.0;
}
double ComputeArea(const vector<PT> &p) { return fabs(ComputeSignedArea(p)); }
PT rect[2][4];
PT pivot = PT(0, 0);
double cross2(PT p, PT q, PT r) {
  return (r.x - q.x) * (p.y - q.y) - (r.y - q.y) * (p.x - q.x);
}
bool collinear(PT p, PT q, PT r) { return fabs(cross2(p, q, r)) < EPS; }
bool ccw(PT p, PT q, PT r) { return cross2(p, q, r) >= 0; }
bool angleCmp(PT a, PT b) {
  if (collinear(pivot, a, b)) return dist2(pivot, a) < dist2(pivot, b);
  return ccw(pivot, a, b);
}
int main() {
  double w, h, a;
  cin >> w >> h >> a;
  if (fabs(a) < EPS || fabs(a - 180.0) < EPS) {
    printf("%.10lf\n", w * h);
    return 0;
  }
  double angRad = PI * a / 180.0;
  rect[0][0] = PT(-w / 2.0, -h / 2.0);
  rect[0][1] = PT(w / 2.0, -h / 2.0);
  rect[0][2] = PT(w / 2.0, h / 2.0);
  rect[0][3] = PT(-w / 2.0, h / 2.0);
  rect[1][0] = RotateCCW(rect[0][0], angRad);
  rect[1][1] = RotateCCW(rect[0][1], angRad);
  rect[1][2] = RotateCCW(rect[0][2], angRad);
  rect[1][3] = RotateCCW(rect[0][3], angRad);
  vector<PT> poly;
  for (int i = 0; i < 4; ++i)
    for (int j = 0; j < 4; ++j) {
      PT a = rect[0][i], b = rect[0][(i + 1) % 4];
      PT c = rect[1][j], d = rect[1][(j + 1) % 4];
      if (SegmentsIntersect(a, b, c, d)) {
        PT aux = ComputeLineIntersection(a, b, c, d);
        poly.push_back(ComputeLineIntersection(a, b, c, d));
      }
    }
  pivot = poly[0];
  sort(poly.begin(), poly.end(), angleCmp);
  poly.push_back(poly[0]);
  double ans = ComputeSignedArea(poly);
  printf("%.10lf", ans);
}