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;
double w, h, a;
struct pt {
  double x;
  double y;
};
struct seg {
  pt p1;
  pt p2;
};
pt p[100];
pt p1[100];
pt rot(pt p, double ang) {
  pt res;
  res.x = p.x * cos(ang) - p.y * sin(ang);
  res.y = p.x * sin(ang) + p.y * cos(ang);
  return res;
}
pt get_point(seg s1, double rat) {
  pt res;
  res.x = s1.p1.x + (s1.p2.x - s1.p1.x) * rat;
  res.y = s1.p1.y + (s1.p2.y - s1.p1.y) * rat;
  return res;
}
double get_dist(pt p1, pt p2) {
  return sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));
}
double get_area(pt p1, pt p2, pt p3) {
  double res = (p2.x - p1.x) * (p3.y - p1.y) - (p2.y - p1.y) * (p3.x - p1.x);
  if (res < 0) return -res;
  return res;
}
double get_dist(pt p, seg s) {
  double d1 = get_dist(p, s.p1);
  double d2 = get_dist(p, s.p2);
  double d3 = get_dist(s.p1, s.p2);
  if (d1 * d1 >= d2 * d2 + d3 * d3 || d2 * d2 >= d1 * d1 + d3 * d3)
    return min(d1, d2);
  return get_area(p, s.p1, s.p2) / d3;
}
pt get_inter(seg s1, seg s2) {
  double l, r;
  l = 0;
  r = 1;
  for (int iter = 0; iter <= 100; iter++) {
    double mid1 = 2 * l + r;
    double mid2 = l + 2 * r;
    mid1 /= 3;
    mid2 /= 3;
    pt p1 = get_point(s1, mid1);
    pt p2 = get_point(s1, mid2);
    double d1 = get_dist(p1, s2);
    double d2 = get_dist(p2, s2);
    if (d1 < d2)
      r = mid2;
    else
      l = mid1;
  }
  pt temp = get_point(s1, l);
  return temp;
}
vector<pt> V;
bool cmp(pt a, pt b) {
  if (a.x != b.x) return a.x < b.x;
  return a.y < b.y;
}
bool cw(pt p1, pt p2, pt p3) {
  double d = (p2.x - p1.x) * (p3.y - p1.y) - (p2.y - p1.y) * (p3.x - p1.x);
  if (d <= 1e-8) return true;
  return false;
}
bool ccw(pt p1, pt p2, pt p3) {
  double d = (p2.x - p1.x) * (p3.y - p1.y) - (p2.y - p1.y) * (p3.x - p1.x);
  if (d >= -1e-8) return true;
  return false;
}
vector<pt> convex_hull(vector<pt> v) {
  sort(v.begin(), v.end(), cmp);
  vector<pt> up, down;
  for (int i = 0; i < v.size(); i++) {
    while (up.size() > 1 && ccw(up[up.size() - 2], up[up.size() - 1], v[i]))
      up.pop_back();
    up.push_back(v[i]);
    while (down.size() > 1 &&
           cw(down[down.size() - 2], down[down.size() - 1], v[i]))
      down.pop_back();
    down.push_back(v[i]);
  }
  if (down.size() > 2)
    for (int i = down.size() - 2; i > 0; --i) up.push_back(down[i]);
  return down;
}
void show(vector<pt> v) {
  cout << "!" << endl;
  for (int i = 0; i < v.size(); i++) cout << v[i].x << " " << v[i].y << endl;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin >> w >> h >> a;
  p[0].x = p[1].x = -w * 0.5;
  p[2].x = p[3].x = w * 0.5;
  p[0].y = p[3].y = -h * 0.5;
  p[1].y = p[2].y = h * 0.5;
  a = a * 3.141592653589793 / 180;
  for (int i = 0; i < 4; i++) {
    p1[i] = rot(p[i], a);
  }
  for (int i = 0; i < 4; i++)
    for (int j = 0; j < 4; j++) {
      seg s1;
      s1.p1 = p[i];
      s1.p2 = p[(i + 1) % 4];
      seg s2;
      s2.p1 = p1[j];
      s2.p2 = p1[(j + 1) % 4];
      pt temp = get_inter(s1, s2);
      if (get_dist(temp, s1) < 1e-8 && get_dist(temp, s2) < 1e-8) {
        V.push_back(temp);
      }
    }
  V = convex_hull(V);
  double area = 0;
  V.push_back(V[0]);
  for (int i = 0; i + 1 < V.size(); i++) {
    area += V[i + 1].x * V[i].y - V[i + 1].y * V[i].x;
  }
  if (area < 0) area = -area;
  cout.precision(10);
  cout << fixed << area << endl;
  return 0;
}