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 MAXN = 10;
const double EPS = 1e-10, Pi = acos(-1.0);
pair<double, double> operator+(const pair<double, double> &a,
                               const pair<double, double> &b) {
  return make_pair(a.first + b.first, a.second + b.second);
}
pair<double, double> operator-(const pair<double, double> &a,
                               const pair<double, double> &b) {
  return make_pair(a.first - b.first, a.second - b.second);
}
pair<double, double> operator*(const pair<double, double> &a, double k) {
  return make_pair(a.first * k, a.second * k);
}
pair<double, double> operator/(const pair<double, double> &a, double k) {
  return make_pair(a.first / k, a.second / k);
}
double det(const pair<double, double> &a, const pair<double, double> &b) {
  return a.first * b.second - b.first * a.second;
}
pair<double, double> intersect(const pair<double, double> &a,
                               const pair<double, double> &b,
                               const pair<double, double> &c,
                               const pair<double, double> &d) {
  double k1 = det(b - a, c - a), k2 = det(b - a, d - a);
  if (fabs(k1 - k2) < EPS) return pair<double, double>(0, 0);
  return (d * k1 - c * k2) / (k1 - k2);
}
pair<double, double> rotate(const pair<double, double> &a, double alp) {
  return make_pair(a.first * cos(alp) + a.second * sin(alp),
                   -a.first * sin(alp) + a.second * cos(alp));
}
bool operator==(const pair<double, double> &a, const pair<double, double> &b) {
  return (fabs(a.first - b.first) < EPS && fabs(a.second - b.second) < EPS);
}
bool cmp(const pair<double, double> &a, const pair<double, double> &b) {
  return atan2(a.second, a.first) < atan2(b.second, b.first);
}
pair<double, double> a[MAXN], b[MAXN], lis[MAXN];
int tot;
double alp, w, h;
int main() {
  cin >> w >> h >> alp;
  alp = Pi * alp / 180.0;
  a[0] = make_pair(w / 2.0, h / 2.0);
  a[1] = make_pair(-w / 2.0, h / 2.0);
  a[2] = make_pair(-w / 2.0, -h / 2.0);
  a[3] = make_pair(w / 2.0, -h / 2.0);
  for (int i = 0; i < 4; ++i) b[i] = rotate(a[i], alp);
  for (int i = 0; i < 4; ++i)
    for (int j = 0; j < 4; ++j) {
      pair<double, double> o =
          intersect(b[i], b[(i + 1) % 4], a[j], a[(j + 1) % 4]);
      if (!(o == make_pair(0, 0)) &&
          min(b[i].first, b[(i + 1) % 4].first) < o.first + EPS &&
          o.first < max(b[i].first, b[(i + 1) % 4].first) + EPS &&
          min(a[j].first, a[(j + 1) % 4].first) < o.first + EPS &&
          o.first < max(a[j].first, a[(j + 1) % 4].first) + EPS)
        lis[tot++] = o;
    }
  double CC = 0;
  sort(lis, lis + tot, cmp);
  for (int i = 0; i < tot; ++i) CC += det(lis[i], lis[(i + 1) % tot]);
  printf("%.9lf\n", fabs(CC) / 2.0);
  fclose(stdin);
  fclose(stdout);
  return 0;
}