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;
std::vector<complex<long double> > interpts;
void intersection(complex<long double> p, complex<long double> r,
                  complex<long double> q, complex<long double> s) {
  r = r - p;
  s = s - q;
  long double c1 = (conj(r) * (s)).imag();
  long double c2 = (conj(q - p) * (r)).imag();
  if (abs(c1) < 0.000000000000001 && abs(c2) < 0.000000000000001) {
    complex<long double> t1 = (conj(q - p) * (r)).real();
    t1 /= (conj(r) * (r)).real();
    interpts.push_back(t1);
    t1 += (((conj(s) * (r)).real()) / ((conj(r) * (r)).real()));
    interpts.push_back(t1);
    return;
  } else if (abs(c1) < 0.000000000000001 && abs(c2) > 0.000000000000001) {
    return;
  } else if (abs(c1) > 0.000000000000001) {
    complex<long double> t = (conj(q - p) * (s)).imag();
    t /= (conj(r) * (s)).imag();
    complex<long double> u = (conj(p - q) * (r)).imag();
    u /= (conj(s) * (r)).imag();
    long double tt = t.real();
    long double uu = u.real();
    if ((tt >= -0.000000000000001 && tt <= 1 + 0.000000000000001) &&
        (uu >= -0.000000000000001 && uu <= 1 + 0.000000000000001)) {
      interpts.push_back(p + tt * (r));
    }
  }
}
std::vector<complex<long double> > ConvexHull(
    std::vector<complex<long double> > &v) {
  int n = v.size(), k = 0;
  std::vector<complex<long double> > H(2 * n);
  for (int i = 0; i < n; i++) {
    while (k >= 2 &&
           (conj(H[k - 1] - H[k - 2]) * (H[k - 1] - v[i])).imag() >= 0)
      k--;
    H[k++] = v[i];
  }
  for (int i = n - 2, t = k + 1; i >= 0; i--) {
    while (k >= t &&
           (conj(H[k - 1] - H[k - 2]) * (H[k - 1] - v[i])).imag() >= 0)
      k--;
    H[k++] = v[i];
  }
  H.resize(k - 1);
  return H;
}
long double area(std::vector<complex<long double> > &v) {
  v.push_back(v[0]);
  long double ans = 0;
  for (int i = 0; i < v.size() - 1; ++i) {
    ans +=
        0.5 * (v[i].imag() - v[i + 1].imag()) * (v[i].real() + v[i + 1].real());
  }
  return abs(ans);
}
bool amrCMP(const complex<long double> &pa, const complex<long double> &pb) {
  if (pa.real() < pb.real() ||
      (abs(pa.real() - pb.real()) < 0.000000000000001 &&
       (pa.imag() < pb.imag())))
    return 1;
  return 0;
}
int main() {
  std::ios::sync_with_stdio(false);
  long double w, h, ang;
  cin >> w >> h >> ang;
  ang /= 180;
  ang *= (2 * acos(0));
  std::vector<complex<long double> > pts;
  pts.push_back(complex<long double>(0.5 * w, 0.5 * h));
  pts.push_back(complex<long double>(-0.5 * w, 0.5 * h));
  pts.push_back(complex<long double>(-0.5 * w, -0.5 * h));
  pts.push_back(complex<long double>(0.5 * w, -0.5 * h));
  pts.push_back(complex<long double>(0.5 * w, 0.5 * h));
  std::vector<complex<long double> > rotatedpts;
  for (int i = 0; i < 5; i++) {
    rotatedpts.push_back((pts[i]) * exp(complex<long double>(0, (-ang))));
  }
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) {
      intersection(pts[i], pts[i + 1], rotatedpts[j], rotatedpts[j + 1]);
    }
  }
  sort(interpts.begin(), interpts.end(), amrCMP);
  vector<complex<long double> > finterpts = ConvexHull(interpts);
  cout << fixed << setprecision(6) << area(finterpts);
}