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 N = (int)4;
const int CNT = 1000;
const double EPS = 1e-9;
struct point {
  double first, second;
  point(){};
  point(double first, double second) {
    point ::first = first;
    point ::second = second;
  }
};
point operator+(point a, point b) {
  return point(a.first + b.first, a.second + b.second);
}
point operator-(point a, point b) {
  return point(a.first - b.first, a.second - b.second);
}
point operator*(point a, double t) { return point(a.first * t, a.second * t); }
double operator*(point a, point b) {
  return a.first * b.first + a.second * b.second;
}
double len(point p) {
  return sqrt(((p.first) * (p.first)) + ((p.second) * (p.second)));
}
int w, h;
double alpha;
point have[4];
vector<point> res;
vector<pair<point, point> > p1, p2;
void Rotate(point& p, double alpha) {
  double first = p.first, second = p.second;
  p.first = first * cos(alpha) - second * sin(alpha);
  p.second = second * cos(alpha) + first * sin(alpha);
}
double dist(point p, pair<point, point> l) {
  if ((p - l.first) * (l.second - l.first) >= 0 &&
      (p - l.second) * (l.first - l.second) >= 0) {
    double A = l.second.second - l.first.second;
    double B = l.first.first - l.second.first;
    double C = -l.first.first * A - l.first.second * B;
    return abs(A * p.first + B * p.second + C) /
           sqrt(((A) * (A)) + ((B) * (B)));
  } else {
    return min(len(p - l.first), len(p - l.second));
  }
}
void process(pair<point, point> a, pair<point, point> b) {
  double l = 0, r = 1;
  for (int i = 0; i < CNT; i++) {
    double m1 = l + (r - l) / 3;
    double m2 = r - (r - l) / 3;
    if (dist(a.first + (a.second - a.first) * m1, b) <
        dist(a.first + (a.second - a.first) * m2, b))
      r = m2;
    else
      l = m1;
  }
  double t = (r + l) / 2;
  fprintf(stderr, "[(%f, %f), (%f, %f)], [(%f, %f), (%f, %f)] : %f\n",
          a.first.first, a.first.second, a.second.first, a.second.second,
          b.first.first, b.first.second, b.second.first, b.second.second, t);
  if (dist(a.first + (a.second - a.first) * t, b) < EPS)
    res.push_back(a.first + (a.second - a.first) * t);
}
bool comp(point a, point b) {
  return atan2(a.first, a.second) < atan2(b.first, b.second);
}
int main() {
  cin >> w >> h >> alpha;
  if (alpha > 90) alpha = 180 - alpha;
  if (alpha == 0) {
    cout << (long long)w * h << endl;
    return 0;
  }
  if (alpha == 90) {
    cout << (((long long)min(w, h)) * ((long long)min(w, h))) << endl;
    return 0;
  }
  double fi = alpha * M_PI / 180;
  cerr << fi << endl;
  have[0] = point(w, h);
  have[1] = point(-w, h);
  have[2] = point(-w, -h);
  have[3] = point(w, -h);
  for (int i = 0; i < 4; i++)
    p1.push_back(make_pair(have[i], have[(i + 1) % 4]));
  p2 = p1;
  for (int i = 0; i < 4; i++) Rotate(p2[i].first, fi), Rotate(p2[i].second, fi);
  for (int i = 0; i < (int)(p1).size(); i++)
    for (int j = 0; j < (int)(p2).size(); j++) process(p1[i], p2[j]);
  cerr << (int)(res).size() << endl;
  for (int i = 0; i < (int)(res).size(); i++)
    fprintf(stderr, "(%f, %f)\n", res[i].first, res[i].second);
  sort(res.begin(), res.end(), comp);
  double ans = 0;
  for (int i = 0; i < (int)(res).size(); i++) {
    point a = res[i], b = res[(i + 1) % (int)(res).size()];
    ans += (a.second + b.second) * (b.first - a.first) * 0.5;
  }
  cout.precision(7);
  cout << fixed << ans * 0.25 << endl;
  return 0;
}