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;
template <class T>
inline bool minim(T &a, const T &b) {
  return b < a ? a = b, 1 : 0;
}
template <class T>
inline bool maxim(T &a, const T &b) {
  return b > a ? a = b, 1 : 0;
}
template <class T>
inline T sqr(const T &a) {
  return a * a;
}
struct point {
  long double x, y;
};
point operator+(point x, point y) { return (point){y.x + x.x, y.y + x.y}; }
point operator-(point x, point y) { return (point){x.x - y.x, x.y - y.y}; }
point operator*(point a, long double b) { return (point){a.x * b, a.y * b}; }
point operator/(point a, long double b) { return (point){a.x / b, a.y / b}; }
long double operator*(point x, point y) { return x.x * y.y - x.y * y.x; }
point rot(point a, point b) {
  return (point){a.x * b.x - a.y * b.y, a.x * b.y + a.y * b.x};
}
struct line {
  point x, y;
};
point result;
long double Abs(long double a) { return a < 0 ? -a : a; }
bool cross(line a, line b) {
  point o = b.y - b.x;
  point p = a.x - b.x, q = a.y - b.x;
  if ((q * o) * (o * p) < -0.000000001) return 0;
  o = a.y - a.x;
  p = b.x - a.x, q = b.y - a.x;
  if ((q * o) * (o * p) < -0.000000001) return 0;
  long double s1 = Abs((b.x - a.x) * (b.y - a.x));
  long double s2 = Abs((b.x - a.y) * (b.y - a.y));
  return result = a.x + (a.y - a.x) * s1 / (s1 + s2), 1;
}
point a[10], b[10], d;
long double w, h, alpha;
line s[10], t[10];
point arr[20];
int tot;
double agl[20];
int p[20];
bool cmp(int i, int j) { return agl[i] < agl[j]; }
int main() {
  double ww, hh, aa;
  scanf("%lf%lf%lf", &ww, &hh, &aa);
  w = ww, h = hh, alpha = aa;
  (alpha *= M_PI) /= 180;
  d = (point){cos(alpha), sin(alpha)};
  a[1] = (point){w / 2, h / 2};
  a[2] = (point){-w / 2, h / 2};
  a[3] = (point){-w / 2, -h / 2};
  a[4] = (point){w / 2, -h / 2};
  if (aa == 0 || (ww == hh && aa == 180)) {
    a[5] = a[1];
    long double area = 0;
    for (int i = 1; i <= 4; ++i) area += a[i] * a[i + 1];
    area /= 2;
    printf("%.10lf\n", (double)area);
    exit(0);
  }
  for (int i = 1; i <= 4; ++i) b[i] = rot(a[i], d);
  a[5] = a[1], b[5] = b[1];
  for (int i = 1; i <= 4; ++i) s[i] = (line){a[i], a[i + 1]};
  for (int i = 1; i <= 4; ++i) t[i] = (line){b[i], b[i + 1]};
  for (int i = 1; i <= 4; ++i)
    for (int j = 1; j <= 4; ++j)
      if (cross(s[i], t[j])) {
        arr[++tot] = result;
        agl[tot] = atan2(result.y, result.x);
        p[tot] = tot;
      }
  sort(p + 1, p + tot + 1, cmp);
  long double area = 0;
  p[tot + 1] = p[1];
  for (int i = 1; i <= tot; ++i) area += arr[p[i]] * arr[p[i + 1]];
  area /= 2;
  printf("%.10lf\n", (double)area);
  return 0;
}