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 long double eps = 1e-10;
int WW, HH, AA;
long double W, H, A;
inline long double Tan(const long double x) {
  return tan((x) / 180 * 3.141592653589);
}
inline long double Sin(const long double x) {
  return sin((x) / 180 * 3.141592653589);
}
inline long double Cos(const long double x) {
  return cos(x / 180 * 3.141592653589);
}
class Line {
 public:
  long double k, b;
} L, R, U, D;
long double Ul, Rl;
long double X1, X2, Y1, Y2;
long double X3, Y3;
long double ans = 0;
int main() {
  scanf("%d%d%d", &WW, &HH, &AA);
  if (AA > 90) AA = 180 - AA;
  W = WW;
  H = HH;
  A = AA;
  if (AA == 0) {
    cout << fixed << setprecision(10) << W * H << endl;
    return 0;
  }
  if (W < H) swap(W, H);
  if (AA == 90) {
    cout << fixed << setprecision(10) << H * H << endl;
    return 0;
  }
  U.k = Tan(A);
  U.b = H / 2 / Cos(A);
  X1 = (H / 2 - U.b) / U.k;
  R.k = -1 / Tan(A);
  R.b = W / 2 / Sin(A);
  X2 = (H / 2 - R.b) / R.k;
  if (X2 <= W / 2 && X1 >= (-W / 2)) {
    Ul = X2 - X1;
    X3 = (R.b - U.b) / (U.k - R.k);
    Y3 = U.k * X3 + U.b;
    ans += (Y3 - H / 2) * Ul;
    U.b = -U.b;
    Y1 = U.k * (W / 2) + U.b;
    Y2 = R.k * (W / 2) + R.b;
    X3 = (R.b - U.b) / (U.k - R.k);
    Y3 = U.k * X3 + U.b;
    ans += (Y2 - Y1) * (X3 - (W / 2));
    ans = (W * H) - ans;
    cout << fixed << setprecision(10) << ans << endl;
  } else {
    U.k = Tan(A);
    U.b = H / 2 / Cos(A);
    X1 = (H / 2 - U.b) / U.k;
    D.k = U.k;
    D.b = -U.b;
    X2 = (H / 2 - D.b) / D.k;
    Ul = X2 - X1;
    ans = Ul * (H);
    cout << fixed << setprecision(10) << ans << endl;
  }
  return 0;
}