#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
int main() {
  double w, h, a;
  double ans;
  cin >> w >> h >> a;
  if (a > 90) a = 180 - a;
  a = a / 180 * PI;
  if (90 - a / 180 * PI < 1e-6) {
    if (w > h)
      ans = h * h;
    else
      ans = w * w;
  } else if (w > h && a >= atan(2 * w * h / (w * w - h * h))) {
    ans = h * h / sin(a);
  } else if (h > w && a >= atan(2 * w * h / (h * h - w * w))) {
    ans = w * w / sin(a);
  } else {
    double x = (w * cos(a) * (cos(a) + 1) - h * sin(a) * cos(a)) /
               ((cos(a) + 1) * (cos(a) + 1) - sin(a) * sin(a));
    double y = (h * cos(a) * (cos(a) + 1) - w * sin(a) * cos(a)) /
               ((cos(a) + 1) * (cos(a) + 1) - sin(a) * sin(a));
    ans = w * h - x * x * tan(a) - y * y * tan(a);
  }
  printf("%.9f", ans);
  return 0;
}
