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 eps = 1e-5;
class P {
 public:
  double x, y;
  P() {}
  P(double a, double b) : x(a), y(b) {}
  double operator%(const P &p) const { return x * p.y - y * p.x; }
  double operator*(const P &p) const { return x * p.x + y * p.y; }
  P operator+(const P &p) const { return P(x + p.x, y + p.y); }
  P operator-(const P &p) const { return P(x - p.x, y - p.y); }
  bool operator>(const P &p) const {
    if (fabs(x - p.x) > eps) return x > p.x;
    return y > p.y;
  }
  double modu() { return sqrt(x * x + y * y); }
};
P intersecta(P p1, P p11, P p2, P p22) {
  P v1 = p11 - p1, v2 = p22 - p2;
  double y = ((v1 % p1) * v2.y - (v2 % p2) * v1.y) / (v1 % v2);
  double x = ((v1 % p1) * v2.x - (v2 % p2) * v1.x) / (v1 % v2);
  return P(x, y);
}
bool entre(double a, double b, double c) {
  return (c - a > -eps) && (b - c > -eps);
}
bool entre(P a, P b, P c) {
  return entre(min(a.x, b.x), max(a.x, b.x), c.x) &&
         entre(min(a.y, b.y), max(a.y, b.y), c.y);
}
bool inter(P p1, P p11, P p2, P p22) {
  P v1 = p11 - p1, v2 = p22 - p2;
  if (fabs(v1 % v2) < eps) return false;
  P pi = intersecta(p1, p11, p2, p22);
  return entre(p1, p11, pi) && entre(p2, p22, pi);
}
bool dentro(P *ps, P p) {
  int qa = 0, qb = 0;
  for (int i = 0; i < 4; i++) {
    P a = ps[i], b = ps[(i + 1) % 4];
    double v = (p - a) % (b - a);
    if (fabs(v) < eps)
      continue;
    else if (v < 0.0)
      qa++;
    else
      qb++;
  }
  return qa == 0 || qb == 0;
}
P ini;
double calc(double a) { return a * acos(-1.0) / 180.0; }
bool cmp(P a, P b) {
  double v = (a - ini) % (b - ini);
  if (fabs(v) < eps) return (a - ini).modu() > (b - ini).modu();
  return v > 0.0;
}
P pontos[20];
P pnt[20];
P rotate(P a, double ang) {
  double xx = cos(ang) * a.x - sin(ang) * a.y;
  double yy = sin(ang) * a.x + cos(ang) * a.y;
  return P(xx, yy);
}
int main() {
  int w, h;
  double ang;
  scanf("%d %d %lf", &w, &h, &ang);
  double ww = w / 2.0, hh = h / 2.0;
  ang = calc(ang);
  P ps[4] = {P(-ww, -hh), P(ww, -hh), P(ww, hh), P(-ww, hh)};
  P ps2[4];
  for (int i = 0; i < 4; i++) ps2[i] = rotate(ps[i], ang);
  int r = 0;
  for (int i = 0; i < 4; i++) pontos[r++] = ps[i], pontos[r++] = ps2[i];
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) {
      if (inter(ps[i], ps[(i + 1) % 4], ps2[j], ps2[(j + 1) % 4])) {
        pontos[r++] =
            intersecta(ps[i], ps[(i + 1) % 4], ps2[j], ps2[(j + 1) % 4]);
      }
    }
  }
  int qp = 0;
  for (int i = 0; i < r; i++) {
    if (dentro(ps2, pontos[i]) && dentro(ps, pontos[i])) {
      if (qp == 0 || (ini > pontos[i])) ini = pontos[i];
      pnt[qp++] = pontos[i];
    }
  }
  sort(pnt, pnt + qp, cmp);
  double area = 0.0;
  for (int i = 0; i < qp; i++) {
    area += pnt[i] % pnt[(i + 1) % qp];
  }
  printf("%.10lf\n", area / 2.0);
  return 0;
}