#include <bits/stdc++.h>
using namespace std;
int main() {
  int w, h, a;
  scanf("%d %d %d", &w, &h, &a);
  if (a > 90) a = 180 - a;
  double ans = 0.0;
  int temp = min(w, h);
  w = max(w, h);
  h = temp;
  if (a == 0) {
    ans = w;
    ans *= h;
    printf("%.10lf\n", ans);
  } else if (a == 90) {
    ans = h;
    ans *= h;
    printf("%.9lf\n", ans);
  } else {
    double degTh = 2.0 * atan(h * 1.0 / w) * 180.0 / M_PI;
    if (a <= degTh) {
      double rad = a * M_PI / 180.0;
      double cosr = cos(rad), sinr = sin(rad);
      double val1 = (w * cosr + h * sinr - w);
      val1 *= val1;
      val1 /= 2 * sin(2 * rad);
      double val2 = (w * sinr + h * cosr - h);
      val2 *= val2;
      val2 /= 2 * sin(2 * rad);
      double ans = w;
      ans *= h;
      ans -= val1 + val2;
      printf("%.9lf\n", ans);
    } else {
      double rad = a * M_PI / 180.0;
      double sinr = sin(rad);
      double val = h;
      val *= (w - h / sinr);
      double ans = w;
      ans *= h;
      ans -= val;
      printf("%.9lf\n", ans);
    }
  }
}
