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 warning(disable : 4786)
using namespace std;
const double PI = acos(-1.);
struct pt {
  pt() { x = y = 0; }
  pt(double xx, double yy) {
    x = xx;
    y = yy;
  }
  double x, y, theta, d;
};
struct line {
  line() { a = b = c = 0; }
  line(pt P, pt Q) {
    a = P.y - Q.y;
    b = Q.x - P.x;
    c = P.y * (P.x - Q.x) - P.x * (P.y - Q.y);
  }
  double a, b, c;
};
double dist(pt P, pt Q) {
  return sqrt((P.x - Q.x) * (P.x - Q.x) + (P.y - Q.y) * (P.y - Q.y));
}
double isLeft(pt P0, pt P1, pt P2) {
  return ((P1.x - P0.x) * (P2.y - P0.y) - (P2.x - P0.x) * (P1.y - P0.y));
}
double ANGLE(double x, double y) {
  if (y < 0) return 2. * PI + atan2(y, x);
  return atan2(y, x);
}
double eps = 1e-9;
int insegment(pt C, pt A, pt B) {
  if (C.x + eps < ((A.x) < (B.x) ? (A.x) : (B.x)) ||
      C.y + eps < ((A.y) < (B.y) ? (A.y) : (B.y)) ||
      C.x - eps > ((A.x) > (B.x) ? (A.x) : (B.x)) ||
      C.y - eps > ((A.y) > (B.y) ? (A.y) : (B.y)))
    return 0;
  return 1;
}
pt sect(line A, line B) {
  pt ret(1000000000, 1000000000);
  if ((A.a * B.b - B.a * A.b) == 0) return ret;
  ret.x = (A.b * B.c - B.b * A.c) / (A.a * B.b - B.a * A.b);
  ret.y = (A.c * B.a - B.c * A.a) / (A.a * B.b - B.a * A.b);
  return ret;
}
pt pts[50], hull[50];
bool cmp(pt A, pt B) {
  if (fabs(A.theta - B.theta) < 1e-9) return A.d < B.d;
  return A.theta < B.theta;
}
int findHull(int n) {
  pt min(1000000000, 1000000000);
  int i, j, k, tn = 1, now = -1, id = 0;
  for (i = 0; i < n; i++)
    if (pts[i].y < min.y || (pts[i].y == min.y && pts[i].x < min.x)) {
      min = pts[i];
      id = i;
    }
  swap(pts[id], pts[0]);
  for (i = 1; i < n; i++) {
    pts[i].theta = ANGLE(pts[i].x - min.x, pts[i].y - min.y);
    pts[i].d = dist(pts[i], min);
  }
  sort(pts + 1, pts + n, cmp);
  for (i = n - 2; i > 0; i--)
    if (isLeft(pts[0], pts[n - 1], pts[i])) break;
  for (j = i + 1, i = n - 1; i > j; i--, j++) swap(pts[i], pts[j]);
  pts[n++] = pts[0];
  hull[++now] = pts[0];
  hull[++now] = pts[1];
  for (i = 2; i < n; i++) {
    while (now > 1 && isLeft(hull[now - 1], hull[now], pts[i]) < 0) now--;
    hull[++now] = pts[i];
  }
  return now + 1;
}
pt poly1[6], poly2[6];
int main() {
  int tests, cs = 0, i, j, k, n;
  double w, h, theta;
  scanf("%lf%lf%lf", &w, &h, &theta);
  poly1[0] = pt(-w / 2, -h / 2);
  poly1[1] = pt(+w / 2, -h / 2);
  poly1[2] = pt(+w / 2, +h / 2);
  poly1[3] = pt(-w / 2, +h / 2);
  theta = (PI / 180.0) * theta;
  for (i = 0; i < 4; i++) {
    poly2[i].x = poly1[i].x * cos(theta) - poly1[i].y * sin(theta);
    poly2[i].y = poly1[i].x * sin(theta) + poly1[i].y * cos(theta);
  }
  poly1[4] = poly1[0];
  poly2[4] = poly2[0];
  int tot = 0;
  for (i = 0; i < 4; i++)
    for (j = 0; j < 4; j++) {
      line AB(poly1[i], poly1[i + 1]);
      line CD(poly2[j], poly2[j + 1]);
      pt o = sect(AB, CD);
      if (o.x == 1000000000) continue;
      if (insegment(o, poly1[i], poly1[i + 1]) &&
          insegment(o, poly2[j], poly2[j + 1])) {
        pts[tot++] = o;
      }
    }
  int m = findHull(tot);
  double ans = 0.0;
  hull[m] = hull[0];
  for (i = 0; i < m; i++) {
    ans += hull[i].x * hull[i + 1].y - hull[i].y * hull[i + 1].x;
  }
  ans /= 2.0;
  printf("%.8lf\n", fabs(ans));
  return 0;
}