#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1);
double a, w, h, x, y;
int main() {
  scanf("%lf%lf%lf", &w, &h, &a);
  if (a > 90) a = 180 - a;
  a = a / 180.0 * pi;
  if (w < h) swap(w, h);
  x = (w * sin(a) + h * cos(a) - h) / 2;
  y = (w * cos(a) + h * sin(a) - w) / 2;
  printf("%.10lf\n",
         a < atan(h / w) * 2
             ? (a ? w * h - (x * x + y * y) / (sin(a) * cos(a)) : w * h)
             : h * h / sin(a));
  return 0;
}
