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>
#pragma comment(linker, "/STACK:256000000")
using namespace std;
const double eps = 1e-9;
const double pi = 2 * acos(0.);
struct point {
  double x, y;
  point() {}
  point(double x, double y) : x(x), y(y) {}
};
bool cmp(point a, point b) { return a.x < b.x || a.x == b.x && a.y < b.y; }
bool cw(point a, point b, point c) {
  return a.x * (b.y - c.y) + b.x * (c.y - a.y) + c.x * (a.y - b.y) < 0;
}
bool ccw(point a, point b, point c) {
  return a.x * (b.y - c.y) + b.x * (c.y - a.y) + c.x * (a.y - b.y) > 0;
}
void convex_hull(vector<point>& a) {
  if (a.size() == 1) return;
  sort(a.begin(), a.end(), &cmp);
  point p1 = a[0], p2 = a.back();
  vector<point> up, down;
  up.push_back(p1);
  down.push_back(p1);
  for (size_t i = 1; i < a.size(); ++i) {
    if (i == a.size() - 1 || cw(p1, a[i], p2)) {
      while (up.size() >= 2 && !cw(up[up.size() - 2], up[up.size() - 1], a[i]))
        up.pop_back();
      up.push_back(a[i]);
    }
    if (i == a.size() - 1 || ccw(p1, a[i], p2)) {
      while (down.size() >= 2 &&
             !ccw(down[down.size() - 2], down[down.size() - 1], a[i]))
        down.pop_back();
      down.push_back(a[i]);
    }
  }
  a.clear();
  for (size_t i = 0; i < up.size(); ++i) a.push_back(up[i]);
  for (size_t i = down.size() - 2; i > 0; --i) a.push_back(down[i]);
}
double dist(point a, point b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
bool is_in(point a, point b, point c) {
  return fabs(dist(a, b) - dist(a, c) - dist(b, c)) < eps;
}
vector<point> intersect(point a, point b, point c, point d) {
  double A1 = a.y - b.y, B1 = b.x - a.x, C1 = a.x * b.y - a.y * b.x;
  double A2 = c.y - d.y, B2 = d.x - c.x, C2 = c.x * d.y - c.y * d.x;
  double dd = A1 * B2 - A2 * B1;
  vector<point> ret;
  if (fabs(dd) < eps) {
    if (is_in(a, b, c)) ret.push_back(c);
    if (is_in(a, b, d)) ret.push_back(d);
    if (is_in(c, d, a)) ret.push_back(a);
    if (is_in(c, d, b)) ret.push_back(b);
  } else {
    double d1 = -C1 * B2 + C2 * B1;
    double d2 = -A1 * C2 + A2 * C1;
    point cand = point(d1 / dd, d2 / dd);
    if (is_in(a, b, cand) && is_in(c, d, cand)) {
      ret.push_back(cand);
    }
  }
  return ret;
}
int main() {
  point x[4], y[4];
  double w, h, angle;
  cin >> w >> h >> angle;
  angle = angle / 180 * pi;
  x[0] = point(w / 2, h / 2);
  x[1] = point(-w / 2, h / 2);
  x[2] = point(-w / 2, -h / 2);
  x[3] = point(w / 2, -h / 2);
  for (int i = 0; i < 4; ++i) {
    double ang = atan2(x[i].y, x[i].x);
    double d = dist(point(0, 0), x[i]);
    y[i] = point(cos(ang + angle) * d, sin(ang + angle) * d);
  }
  vector<point> res;
  for (int i = 0; i < 4; ++i) {
    for (int j = 0; j < 4; ++j) {
      point a = x[i], b = x[(i + 1) % 4], c = y[j], d = y[(j + 1) % 4];
      vector<point> buf = intersect(a, b, c, d);
      for (int k = 0; k < buf.size(); ++k) {
        res.push_back(buf[k]);
      }
    }
  }
  convex_hull(res);
  res.push_back(res[0]);
  double ar = 0;
  for (int i = 0; i + 1 < res.size(); ++i) {
    ar += res[i].x * res[i + 1].y - res[i].y * res[i + 1].x;
  }
  ar /= 2;
  ar = fabs(ar);
  printf("%.10lf\n", ar);
  return 0;
}