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;
double w, h, a, s = 0, x[5], y[5];
const double pi = 3.1415926535;
vector<pair<double, pair<double, double> > > ans;
void intersect(double x1, double y1, double x2, double y2, double x3, double y3,
               double x4, double y4) {
  double k = (y3 - y4) / (x3 - x4), b = y3 - k * x3;
  if (abs(x1 - x2) < abs(y1 - y2)) {
    if (x4 < x3) swap(x3, x4), swap(y3, y4);
    if (x1 >= x3 && x1 <= x4)
      ans.push_back(make_pair(atan2(k * x1 + b, x1),
                              pair<double, double>(x1, k * x1 + b)));
  } else {
    if (y4 < y3) swap(x3, x4), swap(y3, y4);
    if (y1 >= y3 && y1 <= y4)
      ans.push_back(make_pair(atan2(y1, (y1 - b) / k),
                              pair<double, double>((y1 - b) / k, y1)));
  }
}
int main() {
  cin >> w >> h >> a;
  if (a > 90) a = 180 - a;
  if (a == 0)
    s = h * w;
  else if (a == 90)
    s = min(w, h) * min(w, h);
  else {
    a = a * pi / 180;
    double l = sqrt(h * h + w * w) / 2, b = atan2(h, w);
    x[0] = l * cos(a - b);
    y[0] = l * sin(a - b);
    x[1] = l * cos(a + b);
    y[1] = l * sin(a + b);
    x[2] = -x[0];
    y[2] = -y[0];
    x[3] = -x[1];
    y[3] = -y[1];
    for (int i = 0; i < 4; i++) {
      int j = (i + 1) % 4;
      intersect(w / 2, -h / 2, w / 2, h / 2, x[i], y[i], x[j], y[j]);
      intersect(w / 2, h / 2, -w / 2, h / 2, x[i], y[i], x[j], y[j]);
      intersect(-w / 2, h / 2, -w / 2, -h / 2, x[i], y[i], x[j], y[j]);
      intersect(-w / 2, -h / 2, w / 2, -h / 2, x[i], y[i], x[j], y[j]);
    }
    sort(ans.begin(), ans.end());
    for (int i = 0; i < ans.size() - 1; i++)
      s += (ans[i].second.second + ans[i + 1].second.second) *
           (ans[i].second.first - ans[i + 1].second.first) / 2;
    s += (ans[ans.size() - 1].second.second + ans[0].second.second) *
         (ans[ans.size() - 1].second.first - ans[0].second.first) / 2;
  }
  printf("%0.7f", s);
}