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 = M_PI;
const double ERR = 1e-13;
int o;
int top[2];
double w, h, a;
struct Point {
  double x, y;
  Point() {}
  Point(double x, double y) : x(x), y(y) {}
  Point operator-(Point a) { return Point(x - a.x, y - a.y); }
};
Point f[3][100];
Point p[100];
inline int Dcmp(double x) {
  if (fabs(x) < ERR) return 0;
  return x > ERR ? 1 : -1;
}
inline Point Rotate(Point A, double rad) {
  return Point(A.x * cos(rad) - A.y * sin(rad),
               A.x * sin(rad) + A.y * cos(rad));
}
inline double Cross(Point A, Point B) { return A.x * B.y - B.x * A.y; }
inline Point X(double x, double y, double xx, double yy, double kk, double bb) {
  if (x == xx) return Point(x, x * kk + bb);
  double k, b;
  Point ans;
  k = (y - yy) / (x - xx);
  b = y - x * k;
  ans.x = (b - bb) / (kk - k);
  ans.y = ans.x * k + b;
  return ans;
}
inline void Work(double k, double b) {
  o = 1 - o;
  top[o] = 0;
  for (int i = 1; i <= top[1 - o]; i++) {
    if (Dcmp((f[1 - o][i].x * k + b - f[1 - o][i].y) * (b)) >= 0) {
      ++top[o];
      f[o][top[o]] = f[1 - o][i];
    }
    int j = i % top[1 - o] + 1;
    if (Dcmp((f[1 - o][i].x * k + b - f[1 - o][i].y) *
             (f[1 - o][j].x * k + b - f[1 - o][j].y)) < 0)
      f[o][++top[o]] =
          X(f[1 - o][i].x, f[1 - o][i].y, f[1 - o][j].x, f[1 - o][j].y, k, b);
  }
}
inline double Area(Point *X, int s) {
  double sum = 0;
  for (int i = 2; i < s; i++) sum += Cross(X[i] - X[1], X[i + 1] - X[1]);
  return sum / 2;
}
int main() {
  scanf("%lf %lf %lf", &w, &h, &a);
  a = a / 180 * pi;
  top[o] = 4;
  f[o][1] = Point(-w / 2, -h / 2);
  f[o][2] = Point(w / 2, -h / 2);
  f[o][3] = Point(w / 2, h / 2);
  f[o][4] = Point(-w / 2, h / 2);
  for (int i = 1; i <= 4; i++) {
    Point tmp = f[o][i];
    p[i] = Rotate(tmp, a);
  }
  for (int i = 1; i <= 4; i++) {
    int j = i % 4 + 1;
    if (Dcmp(p[i].x - p[j].x) == 0) {
      o = 1 - o;
      top[o] = 0;
      for (int j = 1; j <= top[o ^ 1]; j++) {
        if (Dcmp((f[o ^ 1][j].x - p[i].x) * (0 - p[i].x)) >= 0)
          f[o][++top[o]] = f[o ^ 1][j];
        int k = j % top[o ^ 1] + 1;
        if (Dcmp((f[o ^ 1][j].x - p[i].x) * (f[o ^ 1][k].x - p[i].x)) < 0) {
          if (Dcmp(f[o ^ 1][j].x - f[o ^ 1][k].x) == 0) continue;
          double kk = (p[k].y - p[j].y) / (p[k].x - p[j].x);
          double bb = f[o ^ 1][j].y - f[o ^ 1][j].x * kk;
          f[o][++top[o]] = Point(p[i].x, kk * p[i].x + bb);
        }
      }
      continue;
    }
    double k = (p[j].y - p[i].y) / (p[j].x - p[i].x);
    double b = p[i].y - p[i].x * k;
    Work(k, b);
  }
  printf("%.9lf\n", Area(f[o], top[o]));
  return 0;
}