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 dcmp(double d) { return d > 1e-8 ? 1 : (d < -1e-8 ? -1 : 0); }
struct point {
  double x, y;
  point(){};
  point(double _x, double _y) {
    x = _x;
    y = _y;
  }
  void input() { scanf("%lf%lf", &x, &y); }
  void output() { printf("%f %f\n", x, y); }
  double len() { return sqrt(len2()); }
  double len2() { return x * x + y * y; }
  double dis(const point& p) {
    return sqrt((p.x - x) * (p.x - x) + (p.y - y) * (p.y - y));
  }
  point rotate(double ang) const {
    double c = cos(ang), s = sin(ang);
    return point(x * c - y * s, y * c + x * s);
  }
  point operator+(const point& p) { return point(x + p.x, y + p.y); }
  point operator-(const point& p) { return point(x - p.x, y - p.y); }
  point operator*(double r) { return point(x * r, y * r); }
  point operator/(double r) { return point(x / r, y / r); }
  bool operator==(const point& p) {
    return dcmp(x - p.x) == 0 && dcmp(y - p.y) == 0;
  }
  bool operator!=(const point& p) { return !(*this == p); }
  bool operator<(const point& p) {
    return dcmp(x - p.x) == 0 ? dcmp(y - p.y) < 0 : y < p.y;
  }
  bool operator>(const point& p) {
    return dcmp(x - p.x) == 0 ? dcmp(y - p.y) > 0 : x > p.x;
  }
} a, b;
bool operator==(const point& p1, const point& p2) {
  return p1.x - p2.x == 0 && p1.y - p2.y == 0;
}
bool operator<(const point& p1, const point& p2) {
  return p1.x - p2.x == 0 ? p1.y - p2.y < 0 : p1.x < p2.x;
}
point operator-(const point& p1, const point& p2) {
  return point(p1.x - p2.x, p1.y - p2.y);
}
point operator+(const point& p1, const point& p2) {
  return point(p1.x + p2.x, p1.y + p2.y);
}
bool cmp(point p1, point p2) {
  return p1.y > p2.y || (p1.y == p2.y && p1.x < p2.x);
}
double xmulti(point p1, point p2, point p3) {
  return (p2.x - p1.x) * (p3.y - p1.y) - (p3.x - p1.x) * (p2.y - p1.y);
}
double dot(point p1, point p2) { return p1.x * p2.x + p1.y * p2.y; }
double length(point p) { return sqrt(dot(p, p)); }
double dis(point p1, point p2) { return length(p1 - p2); }
double angle(point p1, point p2) {
  return acos(dot(p1, p2) / length(p1) / length(p2));
}
int main() {
  double h, w, x, y, d, d1, d2, l1, l2, l3, l4, l5, ans, temp;
  scanf("%lf%lf%lf", &h, &w, &x);
  if (x > 90) x = 180 - x;
  if (h > w) {
    temp = h;
    h = w;
    w = temp;
  }
  y = atan(h / w);
  x = x / 180 * 3.14159265358979323846264338327950288;
  a.x = cos(x) * w / 2 - sin(x) * h / 2;
  a.y = sin(x) * w / 2 + cos(x) * h / 2;
  b.x = cos(x) * w / 2 + sin(x) * h / 2;
  b.y = sin(x) * w / 2 - cos(x) * h / 2;
  if (x == 0)
    ans = w * h;
  else if (x <= 2 * y) {
    d = a.y - h / 2;
    l1 = d / sin(x);
    l2 = l1 * tan(x);
    ans = l1 * l2;
    l3 = sqrt(l1 * l1 + l2 * l2);
    l4 = w - l1 - l3;
    l5 = l4 / tan(x);
    ans = ans + l4 * l5;
    ans = w * h - ans;
  } else {
    d1 = a.y - h / 2;
    d2 = b.y - h / 2;
    l1 = d1 / sin(x);
    l2 = d2 / sin(x);
    ans = (l1 + l2) * h;
    ans = w * h - ans;
  }
  printf("%f\n", ans);
  return 0;
}