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;
template <class T>
void pp(T v) {
  for (__typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
    cout << *it << ' ';
  cout << endl;
}
template <class T>
void pp(T v, int n) {
  for (int i = 0; i < (int)n; i++) cout << v[i] << ' ';
  cout << endl;
}
template <class T>
inline void chmax(T& a, const T b) {
  a = max(a, b);
}
template <class T>
inline void chmin(T& a, const T b) {
  a = min(a, b);
}
const int INF = 1 << 28;
const double EPS = 1.0e-9;
static const int dx[] = {1, 0, -1, 0}, dy[] = {0, -1, 0, 1};
struct L {
  complex<double> pos, dir;
};
inline double outp(const complex<double>& a, const complex<double>& b) {
  return (conj(a) * b).imag();
}
complex<double> line_cross(const L& l, const L& m) {
  double num = outp(m.dir, m.pos - l.pos);
  double denom = outp(m.dir, l.dir);
  return complex<double>(l.pos + l.dir * num / denom);
}
vector<complex<double> > cut_polygon(const vector<complex<double> >& g, L cut) {
  int n = g.size();
  vector<complex<double> > res;
  for (int i = 0; i < (int)n; i++) {
    complex<double> from(g[i]), to(g[(i + 1) % n]);
    double p1 = (conj(cut.dir) * (from - cut.pos)).imag();
    double p2 = (conj(cut.dir) * (to - cut.pos)).imag();
    if (p1 > -EPS) {
      res.push_back(from);
      if (p2 < -EPS && p1 > EPS)
        res.push_back(from -
                      (to - from) * p1 / (conj(cut.dir) * (to - from)).imag());
    } else if (p2 > EPS) {
      res.push_back(from -
                    (to - from) * p1 / (conj(cut.dir) * (to - from)).imag());
    }
  }
  return res;
}
double area(vector<complex<double> >& g) {
  int n = g.size();
  double s = 0.0;
  for (int i = 0; i < n; i++) {
    int j = (i + 1) % n;
    s += outp(g[i], g[j]) / 2;
  }
  return abs(s);
}
double solve(const double w, const double h, int a) {
  if (a > 90) a = 180 - a;
  if (a == 0) return w * h;
  if (a == 90) return min(w, h) * min(w, h);
  complex<double> pa = polar(w / 2.0, (double)a / 180.0 * M_PI);
  complex<double> pb = polar(h / 2.0, (double)(a + 90) / 180.0 * M_PI);
  vector<complex<double> > org, rot;
  org.push_back(complex<double>(-w / 2.0, -h / 2.0));
  org.push_back(complex<double>(w / 2.0, -h / 2.0));
  org.push_back(complex<double>(w / 2.0, h / 2.0));
  org.push_back(complex<double>(-w / 2.0, h / 2.0));
  rot.push_back(complex<double>(-pa - pb));
  rot.push_back(complex<double>(pa - pb));
  rot.push_back(complex<double>(pa + pb));
  rot.push_back(complex<double>(-pa + pb));
  rot.push_back(rot[0]);
  for (int i = 0; i < (int)4; i++) {
    L edge = (L){rot[i], rot[i + 1] - rot[i]};
    org = cut_polygon(org, edge);
  }
  double ans = area(org);
  return ans;
}
int main(void) {
  int w, h, a;
  cin >> w >> h >> a;
  double ans = solve(w, h, a);
  printf("%0.8f", ans);
  puts("");
  return 0;
}