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 inf = 0x3f3f3f3f;
const long long infLL = 0x3f3f3f3f3f3f3f3fLL;
const double eps = 1e-8;
int sgn(double x) { return x < -eps ? -1 : x > eps; }
const double pi = acos(-1);
double cross(complex<double> u, complex<double> v) {
  return u.real() * v.imag() - u.imag() * v.real();
}
bool on_left(complex<double> p, const vector<complex<double> > &g) {
  complex<double> p1 = *++g.rbegin(), p2 = g.back();
  return sgn(cross(p2 - p1, p - p1)) <= 0;
}
bool cmp(complex<double> a, complex<double> b) {
  return sgn(a.real() - b.real()) ? a.real() < b.real() : a.imag() < b.imag();
}
void convex_hull(complex<double> p[], int n, vector<complex<double> > &g) {
  g.clear();
  sort(p, p + n, cmp);
  for (int i = 0; i < n; ++i) {
    while (g.size() > 1 && on_left(p[i], g)) g.pop_back();
    g.push_back(p[i]);
  }
  int k = g.size();
  for (int i = n - 2; i >= 0; --i) {
    while (g.size() > k && on_left(p[i], g)) g.pop_back();
    g.push_back(p[i]);
  }
  if (n > 1) g.pop_back();
}
double polygon_area(const vector<complex<double> > &g) {
  double s = 0;
  for (int i = 1; i < (int)g.size() - 1; ++i)
    s += cross(g[i] - g[0], g[i + 1] - g[0]);
  return fabs(s) / 2.0;
}
const int maxn = 100 + 5;
double w, h, a;
int n;
complex<double> p[maxn];
void inter(complex<double> o, complex<double> v, complex<double> s,
           complex<double> t) {
  double c1 = cross(s - o, v), c2 = cross(t - o, v);
  if (!sgn(c1))
    p[n++] = s;
  else if ((sgn(c1) ^ sgn(c2)) == -2)
    p[n++] = (c1 * t - c2 * s) / (c1 - c2);
}
void inter(complex<double> p, complex<double> v) {
  inter(p, v, complex<double>(w, h), complex<double>(-w, h));
  inter(p, v, complex<double>(-w, h), complex<double>(-w, -h));
  inter(p, v, complex<double>(-w, -h), complex<double>(w, -h));
  inter(p, v, complex<double>(w, -h), complex<double>(w, h));
}
int main() {
  n = 0;
  scanf("%lf%lf%lf", &w, &h, &a);
  w /= 2, h /= 2, a = a * pi / 180;
  inter(complex<double>(w, h) * polar(1.0, a),
        complex<double>(-1, 0) * polar(1.0, a));
  inter(complex<double>(-w, h) * polar(1.0, a),
        complex<double>(0, -1) * polar(1.0, a));
  inter(complex<double>(-w, -h) * polar(1.0, a),
        complex<double>(1, 0) * polar(1.0, a));
  inter(complex<double>(w, -h) * polar(1.0, a),
        complex<double>(0, 1) * polar(1.0, a));
  vector<complex<double> > g;
  convex_hull(p, n, g);
  printf("%.10f\n", polygon_area(g));
  return 0;
}