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;
struct point {
  double x, y;
  point() {}
  point(double x, double y) : x(x), y(y) {}
};
point protate(point p, double theta) {
  double rad = theta * M_PI / 180.0;
  point p2;
  p2.x = p.x * cos(rad) - p.y * sin(rad);
  p2.y = p.x * sin(rad) + p.y * cos(rad);
  return p2;
}
struct line {
  double a, b, c;
  line(point p1, point p2) {
    if (fabs(p1.x - p2.x) < 1e-9) {
      a = 1;
      b = 0;
      c = -p1.x;
    } else {
      a = -(p1.y - p2.y) / (p1.x - p2.x);
      b = 1;
      c = -(a * p1.x) - p1.y;
    }
  }
};
point intersect(line l1, line l2) {
  point p;
  p.x = (l2.b * l1.c - l1.b * l2.c) / (l2.a * l1.b - l1.a * l2.b);
  if (fabs(l1.b) > 1e-9)
    p.y = -(l1.a * p.x + l1.c);
  else
    p.y = -(l2.a * p.x + l2.c);
  return p;
}
double area(point p1, point p2, point p3) {
  return abs((p2.x - p1.x) * (p3.y - p2.y) - (p2.y - p1.y) * (p3.x - p2.x)) / 2;
}
long long trunca(double d) {
  long long t = d + 1e-9;
  return t;
}
int main() {
  long long x, y, a;
  double w, h;
  cin >> x >> y >> a;
  if (x == 0 or y == 0 or a == 0 or a == 180 or (x == y and a == 90)) {
    cout << x * y << '\n';
    return 0;
  }
  if (a > 90) a = 180 - a;
  if (x < y) swap(x, y);
  w = x;
  h = y;
  point p1(w / 2, h / 2), p2(-w / 2, h / 2), p3(-w / 2, -h / 2),
      p4(w / 2, -h / 2);
  point q1 = protate(p1, a), q2 = protate(p2, a), q3 = protate(p3, a),
        q4 = protate(p4, a);
  line lo1(p1, p2), lo2(p2, p3), lo3(p3, p4), lo4(p4, p1);
  line ld1(q1, q2), ld2(q2, q3), ld3(q3, q4), ld4(q4, q1);
  double area1, area2;
  point pa1 = intersect(ld4, lo4);
  if (abs(pa1.x - w / 2) > 1e-9 or pa1.y > h / 2 or pa1.y < -h / 2) {
    point px1 = intersect(ld1, lo1);
    point px2 = intersect(ld1, lo3);
    area1 = 2 * area(px1, p2, px2);
    area2 = 2 * area(px2, p2, p3);
  } else {
    point pa2 = intersect(ld4, lo1);
    area1 = 2 * area(pa1, p1, pa2);
    point pb1 = intersect(ld1, lo1);
    point pb2 = intersect(ld1, lo2);
    area2 = 2 * area(pb1, p2, pb2);
  }
  printf("%.8lf", x * y - area1 - area2);
  return 0;
}