#include <bits/stdc++.h>
using namespace std;
int main() {
  double w1, h1, an;
  cin >> w1 >> h1 >> an;
  an = min(180 - an, an);
  double w = max(w1, h1);
  double h = min(w1, h1);
  double w2 = w / 2;
  double h2 = h / 2;
  double zhuan = atan(h / w) * 2;
  an = an / 180 * 3.1415926535898;
  double s;
  if (an > zhuan) {
    double l = h / sin(an);
    s = h * l;
  } else {
    double x;
    double y;
    double a = cos(an) + 1;
    double b = sin(an);
    y = (w * b - h * a) / (b * b - a * a);
    x = (a * w - b * h) / (a * a - b * b);
    double f = x * x * sin(an) * cos(an) + y * y * sin(an) * cos(an);
    s = w * h - f;
  }
  printf("%.9f\n", s);
}
