#include <bits/stdc++.h>
using namespace std;
int main() {
  double w, h;
  int alpha;
  cin >> w >> h >> alpha;
  if (h > w) {
    double t = w;
    w = h;
    h = t;
  }
  if (alpha > 90) alpha = 180 - alpha;
  if (alpha == 0) {
    printf("%.10f", w * h);
  } else if (alpha == 90) {
    printf("%.10f", h * h);
  } else {
    double Alpha = (alpha * 3.1415926535897932384626433832795L) / 180.0;
    double beta = 2 * atan(h / w);
    if (Alpha > beta)
      printf("%.10f", h * h / sin(Alpha));
    else {
      double a = (w * (1 + cos(Alpha)) - h * (sin(Alpha))) /
                 (1 + 2 * cos(Alpha) + cos(2 * Alpha));
      double b = (h * (1 + cos(Alpha)) - w * (sin(Alpha))) /
                 (1 + 2 * cos(Alpha) + cos(2 * Alpha));
      printf("%.10f", b * w + a * h);
    }
  }
  return 0;
}
