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;
struct point {
  double x, y;
  point(double _x = 0, double _y = 0) { x = _x, y = _y; }
  friend double operator*(const point& A, const point& B) {
    return A.x * B.y - A.y * B.x;
  }
  bool operator<(const point& B) const {
    return atan2(y, x) - atan2(B.y, B.x) < -1e-9;
  }
} a[5], b[5], c[20];
double A, W, H;
bool cross(const point& p, const point& q, int t, point& c) {
  double k = (p.y - q.y) / (p.x - q.x), d = p.y - k * p.x;
  if (!t || t == 2) {
    c.x = (a[t].y - d) / k, c.y = a[t].y;
    if ((c.x - a[t].x < -1e-9 && c.x - a[t + 1].x < -1e-9) ||
        (a[t].x - c.x < -1e-9 && a[t + 1].x - c.x < -1e-9))
      return 0;
  } else {
    c.x = a[t].x, c.y = k * a[t].x + d;
    if ((c.y - a[t].y < -1e-9 && c.y - a[t + 1].y < -1e-9) ||
        (a[t].y - c.y < -1e-9 && a[t + 1].y - c.y < -1e-9))
      return 0;
  }
  return 1;
}
void doit() {
  scanf("%lf%lf%lf", &W, &H, &A);
  if (A == 0 || A == 180) {
    printf("%.9lf\n", W * H);
    return;
  }
  if (A == 90) {
    printf("%.9lf\n", min(W, H) * min(W, H));
    return;
  }
  A = A / 180 * 3.14159265358979323846;
  a[0] = point(W / 2, H / 2), a[1] = point(-W / 2, H / 2);
  a[2] = point(-W / 2, -H / 2), a[3] = point(W / 2, -H / 2);
  for (int i = 0; i < 4; i++)
    b[i].x = cos(A) * a[i].x - sin(A) * a[i].y,
    b[i].y = sin(A) * a[i].x + cos(A) * a[i].y;
  point p;
  int t = 0;
  b[4] = b[0], a[4] = a[0];
  for (int i = 0; i < 4; i++)
    for (int j = 0; j < 4; j++)
      if (cross(b[i], b[i + 1], j, p)) c[++t] = p;
  sort(c + 1, c + t + 1), c[t + 1] = c[1];
  double ans = 0;
  for (int i = 1; i <= t; i++) ans += c[i] * c[i + 1];
  printf("%.9lf\n", ans / 2);
}
int main() {
  doit();
  return 0;
}