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>
#pragma GCC optimize("O2")
using namespace std;
const int MAX = 5e2 + 5;
const long long MAX2 = 11;
const long long MOD = 1000000007;
const long long INF = 1e18;
const int dr[] = {1, 0, -1, 0, 1, 1, -1, -1, 0};
const int dc[] = {0, 1, 0, -1, 1, -1, 1, -1, 0};
const double pi = acos(-1);
const double EPS = 1e-9;
const int block = 450;
int sz;
double w, h, b, a, px1, px2, px3, px4, py1, py2, py3, py4, u, v, ans;
vector<pair<double, double> > z;
void potong() {
  u = ((px1 * py2 - py1 * px2) * (px3 - px4) -
       (px1 - px2) * (px3 * py4 - py3 * px4)) /
      ((px1 - px2) * (py3 - py4) - (py1 - py2) * (px3 - px4));
  v = ((px1 * py2 - py1 * px2) * (py3 - py4) -
       (py1 - py2) * (px3 * py4 - py3 * px4)) /
      ((px1 - px2) * (py3 - py4) - (py1 - py2) * (px3 - px4));
  if (((u - EPS <= px1 && u + EPS >= px2) ||
       (u + EPS >= px1 && u - EPS <= px2)) &&
      ((v - EPS <= py1 && v + EPS >= py2) ||
       (v + EPS >= py1 && v - EPS <= py2)) &&
      ((u - EPS <= px3 && u + EPS >= px4) ||
       (u + EPS >= px3 && u - EPS <= px4)) &&
      ((v - EPS <= py3 && v + EPS >= py4) ||
       (v + EPS >= py3 && v - EPS <= py4)))
    z.push_back({u, v});
}
int main() {
  cout << fixed << setprecision(15);
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> w >> h >> a;
  if (w < h) swap(w, h);
  if (a > 90.0) a = 180.0 - a;
  a = a * pi / 180.0;
  w /= 2.0, h /= 2.0;
  px1 = px2 = -w, py1 = -h, py2 = h;
  px3 = px1 * cos(a) - py1 * sin(a), py3 = px1 * sin(a) + py1 * cos(a);
  px4 = px2 * cos(a) - py2 * sin(a), py4 = px2 * sin(a) + py2 * cos(a);
  potong();
  px1 = w, px2 = -w, py1 = -h, py2 = -h;
  potong();
  px3 = px1 * cos(a) - py1 * sin(a), py3 = px1 * sin(a) + py1 * cos(a);
  px4 = px2 * cos(a) - py2 * sin(a), py4 = px2 * sin(a) + py2 * cos(a);
  potong();
  px1 = -w, px2 = w, py1 = h, py2 = h;
  potong();
  px1 = w, px2 = w, py1 = -h, py2 = h;
  potong();
  px3 = px1 * cos(a) - py1 * sin(a), py3 = px1 * sin(a) + py1 * cos(a);
  px4 = px2 * cos(a) - py2 * sin(a), py4 = px2 * sin(a) + py2 * cos(a);
  potong();
  px1 = -w, px2 = w, py1 = h, py2 = h;
  potong();
  px3 = px1 * cos(a) - py1 * sin(a), py3 = px1 * sin(a) + py1 * cos(a);
  px4 = px2 * cos(a) - py2 * sin(a), py4 = px2 * sin(a) + py2 * cos(a);
  potong();
  px1 = w, px2 = -w, py1 = -h, py2 = -h;
  potong();
  px1 = px2 = -w, py1 = -h, py2 = h;
  potong();
  sz = z.size();
  z.push_back(z[0]);
  for (long long i = 1; i <= sz; ++i) {
    ans += z[i].first * z[i - 1].second - z[i].second * z[i - 1].first;
  }
  cout << fabs(ans / 2.0) << "\n";
  return 0;
}