#include <bits/stdc++.h>
using namespace std;
double w, h, a, t, x, y, z, ans;
int main() {
  while (~scanf("%lf%lf%lf", &w, &h, &a)) {
    if (a > 90) a = 180 - a;
    if (h > w) t = h, h = w, w = t;
    if (a > 89.5) {
      printf("%.9f", h * h);
      continue;
    }
    if (a < 0.5) {
      printf("%.9f", h * w);
      continue;
    }
    a = a / 180 * acos(-1.0);
    if (tan(a / 2) > (h / w)) {
      x = h / tan(a);
      y = (h / 2) * tan(a / 2);
      z = (w / 2 - x - y);
      ans = (2 * z + x) * h;
      printf("%.9f\n", w * h - ans);
    } else {
      x = w / 2 - (h / 2) * tan(a / 2);
      y = x * tan(a);
      ans = x * y;
      x = w - x - y / sin(a);
      y = x / tan(a);
      ans += x * y;
      printf("%.9f\n", w * h - ans);
    }
  }
  return 0;
}
