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 oo = 1 << 30;
const double PI = M_PI;
const double EPS = 1e-15;
double w, h, u;
double cross(const complex<double> &a, const complex<double> &b) {
  return imag(conj(a) * b);
}
complex<double> rotate_by(const complex<double> &p,
                          const complex<double> &about, double radians) {
  return (p - about) * exp(complex<double>(0, radians)) + about;
}
complex<double> intersect(const complex<double> &a, const complex<double> &b,
                          const complex<double> &p, const complex<double> &q) {
  double d1 = cross(p - a, b - a);
  double d2 = cross(q - a, b - a);
  return (d1 * q - d2 * p) / (d1 - d2);
}
int main() {
  cin.sync_with_stdio(false);
  cin >> w >> h >> u;
  if (w < h) swap(w, h);
  if (u > 90) u = 180 - u;
  u = u * M_PI / 180.;
  cout.precision(10);
  if (u == 0) {
    cout << fixed << w * h << endl;
    return 0;
  }
  if (u >= (M_PI - 2. * atan(w / (double)h))) {
    cout << fixed << h * h / sin(u) << endl;
  } else {
    double answer = w * h;
    complex<double> a1 =
        rotate_by(complex<double>(+w / 2., -h / 2), complex<double>(0, 0), u);
    complex<double> a2 =
        rotate_by(complex<double>(+w / 2., +h / 2), complex<double>(0, 0), u);
    complex<double> a3 =
        rotate_by(complex<double>(-w / 2., +h / 2), complex<double>(0, 0), u);
    complex<double> b1 = intersect(a1, a2, complex<double>(-w / 2., h / 2.),
                                   complex<double>(w / 2., h / 2.));
    complex<double> b2 = intersect(a2, a3, complex<double>(-w / 2., h / 2.),
                                   complex<double>(w / 2., h / 2.));
    {
      double side1 = b1.real() - b2.real();
      double side2 = side1 * cos(u);
      double area = side1 * side2 * sin(u);
      answer = answer - area;
    }
    {
      double side1 = w / 2. - b1.real();
      double side2 = side1 * tan(M_PI / 2. - u);
      double area = side1 * side2;
      answer = answer - area;
    }
    cout << fixed << answer << endl;
  }
  return 0;
}