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 int N = 2e3 + 5;
const long double pi = acos(-1.0);
long double w, h, a, X, Y;
long double x[N], y[N];
long double getx(long double x, long double y) {
  return x * cos(a) - y * sin(a);
}
long double gety(long double x, long double y) {
  return x * sin(a) + y * cos(a);
}
void init() {
  a *= pi / 180.0;
  X = w / 2.0, Y = h / 2.0;
  x[1] = getx(-X, Y), y[1] = gety(-X, Y);
  x[2] = getx(-X, -Y), y[2] = gety(-X, -Y);
  x[3] = getx(X, -Y), y[3] = gety(X, -Y);
  x[4] = getx(X, Y), y[4] = gety(X, Y);
}
struct node {
  long double x, y;
  node() {}
  node(long double a, long double b) { x = a, y = b; }
} p[N];
node operator-(const node& v1, const node& v2) {
  return node(v2.x - v1.x, v2.y - v1.y);
}
long double product(node a, node b) { return a.x * b.y - a.y * b.x; }
map<pair<long double, long double>, int> mp;
int cnt = 0;
bool check(long double x, long double y) {
  if (mp[pair<long double, long double>(x, y)]) return false;
  return x >= -X && x <= X && y <= Y && y >= -Y;
}
bool cmp(node a, node b) {
  if (atan2(a.y, a.x) != atan2(b.y, b.x))
    return atan2(a.y, a.x) < atan2(b.y, b.x);
  return a.x < b.x;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> w >> h >> a;
  if (a == 0 || a == 180) {
    long double res = w * h;
    cout << fixed << setprecision(15) << res << '\n';
    return 0;
  }
  init();
  for (int i = 1; i <= 4; i++) {
    int j = (i == 4 ? 1 : i + 1);
    if (x[j] == x[i]) continue;
    long double k = (y[j] - y[i]) / (x[j] - x[i]);
    for (int o1 = 0; o1 < 2; o1++) {
      for (int o2 = 0; o2 < 2; o2++) {
        long double rx = X, ry = Y;
        if (o1 == 0) rx = -rx;
        if (o2 == 0) ry = -ry;
        long double nx = (ry - y[i] + k * x[i]) / k,
                    ny = k * (rx - x[i]) + y[i];
        if (check(nx, ry))
          p[++cnt] = node(nx, ry),
          mp[pair<long double, long double>(nx, ry)] = true;
        if (check(rx, ny))
          p[++cnt] = node(rx, ny),
          mp[pair<long double, long double>(rx, ny)] = true;
      }
    }
  }
  sort(p + 1, p + 1 + cnt, cmp);
  long double res = 0;
  for (int i = 2; i < cnt; i++) {
    node p1 = p[i] - p[1], p2 = p[i + 1] - p[1];
    res += fabs(product(p1, p2));
  }
  res /= 2.0;
  cout << fixed << setprecision(15) << res << '\n';
  return 0;
}