#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
double W, H, alpha;
int main() {
  scanf("%lf%lf%lf", &W, &H, &alpha);
  if (W < H) std::swap(W, H);
  if (alpha > 90.) alpha = 180. - alpha;
  alpha *= PI / 180.;
  double Sin = sin(alpha), Cos = cos(alpha);
  if (alpha > 2. * atan(H / W)) {
    printf("%.10lf\n", ((H) * (H)) / Sin);
  } else {
    double t = (W + H) / (1. + Sin + Cos);
    double X = (W - t * Sin) / (1 + Cos - Sin);
    double Y = t - X;
    double S = ((X) * (X)) * Sin * Cos + ((Y) * (Y)) * Sin * Cos;
    printf("%.10lf\n", W * H - S);
  }
  return 0;
}
