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;
int i, j, n, m, s, t;
int l = 0, k = 0;
int x = 0, y = 0, X0, Y0, X1, Y1, X2, Y2;
const double EPS = 1E-9;
struct pt {
  long double x, y;
  pt() {}
  pt(long double xx, long double yy) {
    x = xx;
    y = yy;
  }
  bool operator<(const pt& p) const {
    return x < p.x - EPS || abs(x - p.x) < EPS && y < p.y - EPS;
  }
  long double ang() {
    long double res = 0;
    if (x == 0 && y == 0) res = 0;
    if (x == 0) res = (y > 0 ? 1 : -1) * 3.141592653569 / 4.;
    long double d = 0;
    if (y < 0 && x < 0) d = -3.141592653569;
    if (y > 0 && x < 0) d = 3.141592653569;
    res = atan(y / x) + d;
    return res;
  }
};
vector<pt> f1, f2, f3;
struct line {
  double a, b, c;
  line() {}
  line(pt p, pt q) {
    a = p.y - q.y;
    b = q.x - p.x;
    c = -a * p.x - b * p.y;
    norm();
  }
  void norm() {
    long double z = sqrt(a * a + b * b);
    if (abs(z) > EPS) a /= z, b /= z, c /= z;
  }
  long double dist(pt p) const { return a * p.x + b * p.y + c; }
};
inline bool betw(long double l, long double r, long double x) {
  return min(l, r) <= x + EPS && x <= max(l, r) + EPS;
}
inline bool intersect_1d(long double a, long double b, long double c,
                         long double d) {
  if (a > b) swap(a, b);
  if (c > d) swap(c, d);
  return max(a, c) <= min(b, d) + EPS;
}
bool intersect(pt a, pt b, pt c, pt d, pt& left, pt& right) {
  if (!intersect_1d(a.x, b.x, c.x, d.x) || !intersect_1d(a.y, b.y, c.y, d.y))
    return false;
  line m(a, b);
  line n(c, d);
  long double zn = (m.a * n.b - m.b * n.a);
  if (abs(zn) < EPS) {
    if (abs(m.dist(c)) > EPS || abs(n.dist(a)) > EPS) return false;
    if (b < a) swap(a, b);
    if (d < c) swap(c, d);
    left = max(a, c);
    right = min(b, d);
    return true;
  } else {
    left.x = right.x = -(m.c * n.b - m.b * n.c) / zn;
    left.y = right.y = -(m.a * n.c - m.c * n.a) / zn;
    return betw(a.x, b.x, left.x) && betw(a.y, b.y, left.y) &&
           betw(c.x, d.x, left.x) && betw(c.y, d.y, left.y);
  }
}
bool cmp(pt a, pt b) { return a.ang() < b.ang(); }
long double sq(pt& a, pt& b, pt& c) {
  return a.x * (b.y - c.y) + b.x * (c.y - a.y) + c.x * (a.y - b.y);
}
int main() {
  long double w, h, a;
  cin >> w >> h >> a;
  w /= 2.;
  h /= 2.;
  a = 3.141592653569 * a / 180.;
  f1.push_back(pt(-w, h));
  f1.push_back(pt(w, h));
  f1.push_back(pt(w, -h));
  f1.push_back(pt(-w, -h));
  f1.push_back(pt(-w, h));
  long double sa = sin(a);
  long double ca = cos(a);
  f2.push_back(pt(-1 * ca * w - sa * h, -1 * sa * w + ca * h));
  f2.push_back(pt(ca * w - sa * h, sa * w + ca * h));
  f2.push_back(pt(ca * w + sa * h, sa * w - ca * h));
  f2.push_back(pt(-1 * ca * w + sa * h, -1 * sa * w - ca * h));
  f2.push_back(pt(-1 * ca * w - sa * h, -1 * sa * w + ca * h));
  for (i = 0; i < f1.size() - 1; i++)
    for (j = 0; j < f2.size() - 1; j++) {
      pt AA, BB;
      if (intersect(f1[i], f1[i + 1], f2[j], f2[j + 1], AA, BB)) {
        f3.push_back(AA);
      }
    }
  sort(f3.begin(), f3.end(), cmp);
  long double res = 0;
  f3.push_back(f3[0]);
  pt pt0(0, 0);
  for (i = 0; i < f3.size() - 1; i++) {
    res += fabs(sq(f3[i], f3[i + 1], pt0));
  }
  cout.unsetf(std::ios::floatfield);
  cout.precision(10);
  cout << (res / 2.);
  return 0;
}