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;
const int MAX = 1000 + 10;
double w, h;
double alpha;
struct point {
  double first, second;
  int num;
  point() {}
  point(double a, double b) {
    first = a;
    second = b;
  }
} d[MAX];
point operator-(const point& a, const point& b) {
  return point(a.first - b.first, a.second - b.second);
}
double chaji(const point& s, const point& a, const point& b) {
  return (a.first - s.first) * (b.second - s.second) -
         (a.second - s.second) * (b.first - s.first);
}
double dist(const point& a, const point& b) {
  return (a.first - b.first) * (a.first - b.first) +
         (b.second - a.second) * (b.second - a.second);
}
point inter(const point& a, const point& b, const point& c, const point& d) {
  double s = chaji(a, c, d), s2 = chaji(a, c, b) + chaji(a, b, d);
  double r = s / s2;
  return point(a.first + (b.first - a.first) * r,
               a.second + (b.second - a.second) * r);
}
int sign(double a) { return a > 0 ? 1 : (a == 0 ? 0 : -1); }
int cross(const point& a, const point& b, const point& c, const point& d) {
  return sign(chaji(a, c, b)) * sign(chaji(a, b, d)) > 0 &&
         sign(chaji(c, a, d)) * sign(chaji(c, d, b)) > 0;
}
int operator<(const point& a, const point& b) {
  return atan2(a.second, a.first) < atan2(b.second, b.first);
}
point t[100];
int top = 0;
int main() {
  scanf("%lf%lf", &w, &h);
  w /= 2;
  h /= 2;
  cin >> alpha;
  alpha *= M_PI / 180;
  int walk[4][2] = {{1, 1}, {-1, 1}, {-1, -1}, {1, -1}};
  int i;
  int cc = 0;
  point aa[100], bb[100];
  if (abs(alpha) < 1e-10 || abs(alpha - M_PI) < 1e-10) {
    printf("%lf\n", w * h * 4);
    return 0;
  }
  for ((i) = (0); (i) != (4); ++(i)) {
    point a(w * walk[i][0], h * walk[i][1]);
    double r = sqrt(w * w + h * h);
    double nowal = atan2(a.second, a.first);
    nowal += alpha;
    point b(r * cos(nowal), r * sin(nowal));
    aa[cc++] = a;
    bb[cc] = b;
  }
  int j;
  for ((i) = (0); (i) != (4); ++(i))
    for ((j) = (0); (j) != (4); ++(j))
      if (cross(aa[i], aa[(i + 1) % 4], bb[j], bb[(j + 1) % 4]))
        t[++top] = inter(aa[i], aa[(i + 1) % 4], bb[j], bb[(j + 1) % 4]);
  double ans = 0;
  sort(t + 1, t + top + 1);
  for ((i) = (0); (i) != (top); ++(i)) {
    int j = (i + 1) % top;
    ans += chaji(point(0, 0), t[i + 1], t[j + 1]);
  }
  ans = abs(ans);
  printf("%lf\n", ans);
  return 0;
}