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 double pi = acos(-1);
struct point {
  double x, y;
  point(double x = 0.0, double y = 0.0) : x(x), y(y) {}
};
point operator+(point P1, point P2) { return point(P1.x + P2.x, P1.y + P2.y); }
point operator-(point P1, point P2) { return point(P1.x - P2.x, P1.y - P2.y); }
point rotate(point P, double alpha) {
  return point(cos(alpha) * P.x - sin(alpha) * P.y,
               sin(alpha) * P.x + cos(alpha) * P.y);
}
ostream &operator<<(ostream &out, point P) { return out << P.x << ' ' << P.y; }
double cross(point P1, point P2) { return P1.x * P2.y - P2.x * P1.y; }
double area(vector<point> &P) {
  double ans = cross(P.back(), P.front());
  for (int i = 0; i < P.size() - 1; ++i) ans += cross(P[i], P[i + 1]);
  return abs(ans) / 2.0;
}
struct segment {
  point P1, P2;
  segment(point P1, point P2) : P1(P1), P2(P2) {}
};
bool intersects(segment S1, segment S2) {
  return cross(S1.P2 - S1.P1, S2.P1 - S1.P1) *
                 cross(S1.P2 - S1.P1, S2.P2 - S1.P1) <=
             0.0 &&
         cross(S2.P2 - S2.P1, S1.P1 - S2.P1) *
                 cross(S2.P2 - S2.P1, S1.P2 - S2.P1) <=
             0.0;
}
point intersection(segment S1, segment S2) {
  double A1 = S1.P2.y - S1.P1.y, B1 = S1.P1.x - S1.P2.x,
         C1 = -A1 * S1.P1.x - B1 * S1.P1.y;
  double A2 = S2.P2.y - S2.P1.y, B2 = S2.P1.x - S2.P2.x,
         C2 = -A2 * S2.P1.x - B2 * S2.P1.y;
  return {(B1 * C2 - B2 * C1) / (A1 * B2 - A2 * B1),
          (A2 * C1 - A1 * C2) / (A1 * B2 - A2 * B1)};
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout << fixed << setprecision(6);
  double w, h;
  int alpha;
  cin >> w >> h >> alpha;
  if (alpha == 0 || alpha == 180 || (w == h && alpha == 90)) {
    cout << w * h << '\n';
    return 0;
  }
  vector<point> P = {{w / 2.0, h / 2.0},
                     {-w / 2.0, h / 2.0},
                     {-w / 2.0, -h / 2.0},
                     {w / 2.0, -h / 2.0},
                     {w / 2.0, h / 2.0}};
  vector<point> R(5);
  for (int i = 0; i < 5; ++i) R[i] = rotate(P[i], alpha * pi / 180.0);
  vector<point> B;
  for (int i = 0; i < 4; ++i)
    for (int j = 0; j < 4; ++j)
      if (intersects({P[i], P[i + 1]}, {R[j], R[j + 1]}))
        B.push_back(intersection({P[i], P[i + 1]}, {R[j], R[j + 1]}));
  sort(B.begin(), B.end(), [](point P1, point P2) {
    return atan2(P1.y, P1.x) <= atan2(P2.y, P2.x);
  });
  cout << area(B) << '\n';
  return 0;
}