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;
bool stt;
class point {
 public:
  long double x, y;
} q[100];
class line {
 public:
  point s, t;
  long double A, B, C;
} P[100], PP[100];
long double pi = 3.1415926535897932384626433832795;
long double W, H, alpha, res;
long double eps = 1e-12;
const long double inf = 2e14;
int len;
bool enn;
point across(line a, line b) {
  if (fabs(a.A * b.B - b.A * a.B) < eps) {
    if (fabs(b.A * a.C - a.A * b.C) < eps) return a.s;
    point t;
    t.x = inf;
    t.y = inf;
    return t;
  }
  long double y = (b.A * a.C - a.A * b.C) / (a.A * b.B - b.A * a.B);
  long double x = (b.B * a.C - a.B * b.C) / (a.B * b.A - b.B * a.A);
  point t;
  t.x = x;
  t.y = y;
  return t;
}
bool check(point a, line b) {
  if (a.x + eps >= min(b.s.x, b.t.x) && a.x <= max(b.s.x, b.t.x) + eps)
    if (a.y + eps >= min(b.s.y, b.t.y) && a.y <= max(b.s.y, b.t.y) + eps)
      return true;
  return false;
}
void make(line &a) {
  a.A = a.t.y - a.s.y;
  a.B = a.s.x - a.t.x;
  a.C = -a.A * a.s.x - a.B * a.s.y;
}
point rotate(point a, long double alpha) {
  point b;
  b.x = a.x * cos(alpha) - a.y * sin(alpha);
  b.y = a.x * sin(alpha) + a.y * cos(alpha);
  return b;
}
bool cmp(const point &a, const point &b) {
  return atan2(a.y, a.x) < atan2(b.y, b.x);
};
long double xet(point a, point b) { return a.x * b.y - b.x * a.y; }
int main() {
  double sss;
  scanf("%lf", &sss);
  W = sss;
  scanf("%lf", &sss);
  H = sss;
  scanf("%lf", &sss);
  alpha = sss;
  alpha = alpha / 180 * pi;
  P[1].s.x = W / 2;
  P[1].s.y = H / 2;
  P[1].t.x = -W / 2;
  P[1].t.y = H / 2;
  P[2].s.x = -W / 2;
  P[2].s.y = H / 2;
  P[2].t.x = -W / 2;
  P[2].t.y = -H / 2;
  P[3].s.x = -W / 2;
  P[3].s.y = -H / 2;
  P[3].t.x = W / 2;
  P[3].t.y = -H / 2;
  P[4].s.x = W / 2;
  P[4].s.y = -H / 2;
  P[4].t.x = W / 2;
  P[4].t.y = H / 2;
  for (int i = 1; i <= 4; i++) {
    make(P[i]);
    PP[i].s = rotate(P[i].s, alpha);
    PP[i].t = rotate(P[i].t, alpha);
    make(PP[i]);
  }
  len = 0;
  for (int i = 1; i <= 4; i++)
    for (int j = 1; j <= 4; j++) {
      point t = across(P[i], PP[j]);
      if (check(t, P[i]) && check(t, PP[j])) q[++len] = t;
    }
  sort(q + 1, q + len + 1, cmp);
  res = 0;
  for (int i = 1; i <= len; i++) {
    int j = i % len + 1;
    res = res + xet(q[i], q[j]) / 2;
  }
  sss = double(res);
  printf("%.9lf", sss);
}