#include <bits/stdc++.h>
const double PI = acos(-1.0);
int main() {
  double w, h, a;
  scanf("%lf%lf%lf", &w, &h, &a);
  if (a == 0 || a == 180) {
    printf("%.8lf\n", w * h);
    return 0;
  }
  if (a > 90) a = 180 - a;
  if (w < h) {
    double t = w;
    w = h;
    h = t;
  }
  a = a * PI / 180;
  double x, y, k;
  k = 1 / sin(a) + 1 / tan(a);
  if (h * k < w) {
    printf("%.8lf\n", h * h / sin(a));
    return 0;
  }
  x = (k * w - h) / (k * k - 1);
  y = (k * h - w) / (k * k - 1);
  printf("%.8lf\n", w * h - (x * x + y * y) / tan(a));
  return 0;
}
