#include <bits/stdc++.h>
using namespace std;
double calc(double w, double h, double a) {
  double ta = tan(a), ca = cos(a);
  double D = ta * ta - (1.0 + 1.0 / ca) * (1.0 + 1.0 / ca);
  double D1 = ta * w - (1.0 + 1.0 / ca) * h;
  double D2 = ta * h - (1.0 + 1.0 / ca) * w;
  double x = D1 / D, y = D2 / D;
  return w * h - (x * x + y * y) * ta;
}
int main() {
  double w, h;
  int a;
  while (~scanf("%lf%lf%d", &w, &h, &a)) {
    if (w < h) swap(w, h);
    if (a > 90) a = 180 - a;
    double ang = a * acos(-1.0) / 180, ans;
    if (a == 0) {
      ans = w * h;
    } else if (ang >= atan2(h, w) * 2) {
      ans = h * h / sin(ang);
    } else {
      ans = calc(w, h, ang);
    }
    printf("%.10f\n", ans);
  }
  return 0;
}
