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.0);
struct point {
  double x, y;
  bool mark;
  point() {}
  point(double xx, double yy) : x(xx), y(yy), mark(1) {}
};
vector<point> p;
int n;
double a, b, c;
point intersect(point p1, point p2, double a, double b, double c) {
  double u = fabs(a * p1.x + b * p1.y + c);
  double v = fabs(a * p2.x + b * p2.y + c);
  point ans;
  ans.x = (v * p1.x + u * p2.x) / (u + v);
  ans.y = (v * p1.y + u * p2.y) / (u + v);
  return ans;
}
void cut(double a, double b, double c) {
  int i;
  point tp;
  for (i = 0; i < p.size(); i++)
    if (a * p[i].x + b * p[i].y + c < 1e-8)
      p[i].mark = 1;
    else
      p[i].mark = 0;
  p.push_back(p[0]);
  for (i = 0; i < p.size() - 1; i++)
    if ((p[i].mark ^ p[i + 1].mark) == 1) {
      tp = intersect(p[i], p[i + 1], a, b, c);
      p.insert(p.begin() + i + 1, tp);
      i++;
    }
  p.pop_back();
  for (i = 0; i < p.size(); i++)
    if (p[i].mark == 0) p.erase(p.begin() + i), i--;
}
void getline(point p1, point p2) {
  a = p2.y - p1.y;
  b = p1.x - p2.x;
  c = p2.x * p1.y - p2.y * p1.x;
}
void Vector_rotation(point a, double angle, point &p) {
  double alf = atan2(a.y, a.x);
  double r = sqrt(a.x * a.x + a.y * a.y);
  p.x = r * cos(alf + angle);
  p.y = r * sin(alf + angle);
}
double area_polygon(const vector<point> &p) {
  double s1 = 0, s2 = 0;
  int i;
  int n = p.size();
  for (i = 0; i < p.size(); i++)
    s1 += p[(i + 1) % n].y * p[i].x, s2 += p[(i + 1) % n].y * p[(i + 2) % n].x;
  return fabs(s1 - s2) / 2;
}
int main() {
  int i, j;
  double w, h, ct;
  cin >> w >> h >> ct;
  if (w < h) swap(w, h);
  if (!ct || ct == 180) {
    printf("%.9f\n", h * w);
    return 0;
  }
  if (ct == 90) {
    printf("%.9f\n", h * h);
    return 0;
  }
  if (ct > 90) ct = 180 - ct;
  ct = ct / 180 * pi;
  point A, B, C, D;
  p.push_back(A = point(-w / 2, -h / 2));
  p.push_back(B = point(w / 2, -h / 2));
  p.push_back(C = point(w / 2, h / 2));
  p.push_back(D = point(-w / 2, h / 2));
  point P1, P2, P3, P4;
  Vector_rotation(A, ct, P1);
  Vector_rotation(B, ct, P2);
  Vector_rotation(C, ct, P3);
  Vector_rotation(D, ct, P4);
  getline(P1, P2);
  cut(a, b, c);
  getline(P2, P3);
  cut(a, b, c);
  getline(P3, P4);
  cut(a, b, c);
  getline(P4, P1);
  cut(a, b, c);
  double s = area_polygon(p);
  printf("%.9f\n", s);
  return 0;
}