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;
void Get(int &T) {
  char C;
  bool F = 0;
  for (; C = getchar(), C < '0' || C > '9';)
    if (C == '-') F = 1;
  for (T = C - '0'; C = getchar(), C >= '0' && C <= '9'; T = T * 10 + C - '0')
    ;
  F && (T = -T);
}
int W, H, Alpha;
double Cos, Sin;
void Init() {
  Get(W);
  Get(H);
  Get(Alpha);
  if (W < H) std::swap(W, H);
  Cos = cos(Alpha / 180.0 * M_PI);
  Sin = sin(Alpha / 180.0 * M_PI);
  Cos = std::abs(Cos);
}
double X1 = W;
double Y1 = H;
double X2 = -W;
double Y2 = H;
double X3 = -W;
double Y3 = -H;
double X4 = -W;
double Y4 = -H;
double X(double X1, double Y1, double X2, double Y2, double Y0) {
  return (X2 - X1) / (Y2 - Y1) * (Y0 - Y1) + X1;
}
double Y(double X1, double Y1, double X2, double Y2, double X0) {
  return (Y2 - Y1) / (X2 - X1) * (X0 - X1) + Y1;
}
void Rot(double &X, double &Y, int Deg) {
  double X0 = X * Cos - Y * Sin;
  double Y0 = X * Sin + Y * Cos;
  X = X0;
  Y = Y0;
}
double Ans;
void Work() {
  Ans = (double)W * (double)H * 4.0;
  if (Alpha == 0 || Alpha == 180) return;
  if (Alpha == 90) {
    Ans = W;
    if (Ans > H) Ans = H;
    Ans *= Ans;
    Ans *= 4;
    return;
  }
  double X1 = W;
  double Y1 = H;
  double X2 = -W;
  double Y2 = H;
  double X3 = -W;
  double Y3 = -H;
  double X4 = W;
  double Y4 = -H;
  Rot(X1, Y1, Alpha);
  Rot(X2, Y2, Alpha);
  Rot(X3, Y3, Alpha);
  Rot(X4, Y4, Alpha);
  double Ans1, Ans2;
  if (Y1 - H > 0) {
    Ans1 = X(X1, Y1, X4, Y4, H);
    Ans2 = X(X1, Y1, X2, Y2, H);
    Ans -= std::abs(Ans1 - Ans2) * (Y1 - H);
  } else {
    Ans1 = Y(X1, Y1, X4, Y4, W);
    Ans2 = Y(X2, Y2, X1, Y1, W);
    Ans += std::abs(Ans1 - Ans2) * (-X2 - W);
  }
  if (-X2 - W > 0) {
    Ans1 = Y(X1, Y1, X2, Y2, -W);
    Ans2 = Y(X2, Y2, X3, Y3, -W);
    Ans -= std::abs(Ans1 - Ans2) * (-X2 - W);
  } else {
    Ans1 = X(X1, Y1, X2, Y2, -H);
    Ans2 = X(X2, Y2, X3, Y3, -H);
    Ans += std::abs(Ans1 - Ans2) * (-Y2 - H);
  }
}
void Output() {
  Ans /= 4;
  printf("%.15lf\n", Ans);
}
int main() {
  Init();
  Work();
  Output();
  return 0;
}