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>
double distance(double x1, double y1, double x2, double y2) {
  double x = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  return x;
}
double giveX1(double A, double h, double y) {
  double c = (y - (h / (2 * cos(A)))) / tan(A);
  return c;
}
double giveX2(double A, double w, double y) {
  double c = (y + (w / (2 * sin(A)))) / tan((3.14159265359 / 2 + A));
  return c;
}
double giveY1(double A, double h, double x) {
  double c = x * tan(A) + h / (2 * cos(A));
  return c;
}
double giveY2(double A, double w, double x) {
  double c = x * tan((3.14159265359 / 2 + A)) - w / (2 * sin(A));
  return c;
}
int main() {
  double h, w, A, sum, P1, P2, P3, P4;
  bool flag = true;
  double eps = 0.000000000000000001;
  double pi = 3.14159265359;
  scanf("%lf", &w);
  scanf("%lf", &h);
  scanf("%lf", &A);
  if (h > w) {
    double tmp = h;
    h = w;
    w = tmp;
  }
  if (A > 90) A = 180 - A;
  if (A == 0) {
    printf("%.10lf\n", h * w);
    flag = false;
  }
  if (A == 90) {
    printf("%.10lf\n", h * h);
    flag = false;
  }
  A = A * pi / 180;
  P1 = giveX1(A, h, h / 2);
  P2 = giveX1(A, h, -h / 2);
  if (fabs(P2 - (-w / 2)) > eps && P2 < -w / 2) {
    P2 = giveY1(A, h, -w / 2);
    P3 = giveY2(A, w, -w / 2);
    P4 = giveX2(A, w, -h / 2);
    sum = w * h - ((P1 + w / 2) * (h / 2 - P2) + (P3 + h / 2) * (P4 + w / 2));
    if (flag) printf("%.10lf", sum);
  } else {
    sum = 2 * (-P1 * h + (P1 - P2) * h / 2);
    if (flag) printf("%.10lf", sum);
  }
  return 0;
}