#include <bits/stdc++.h>
using namespace std;
const int inf = 2000000000;
const int maxn = 100005;
double w, h, th;
int main() {
  scanf("%lf%lf%lf", &w, &h, &th);
  if (th > 90) th = 180 - th;
  if (w < h) swap(w, h);
  double ans = 0;
  if (th == 0)
    ans = w * h;
  else {
    th /= 180, th *= acos(-1);
    if (th > atan((2 * w * h) / (w * w - h * h))) {
      ans = h * h / sin(th);
    } else {
      double a = 1.0 + 1.0 / cos(th);
      double x = (h * cos(th) * sin(th) - w * cos(th) - w * cos(th) * cos(th)) /
                 (sin(th) * sin(th) - cos(th) * cos(th) - 2 * cos(th) - 1);
      double b = w - x * a;
      ans = w * h - x * x * tan(th) - b * b / tan(th);
    }
  }
  printf("%.9f\n", ans);
  return 0;
}
