#include <bits/stdc++.h>
using namespace std;
const double pi = 2 * acos(0.0);
int main() {
  double angle, w, h, temp, sn, cs, A, B, C, threshold, x, y;
  scanf("%lf%lf%lf", &w, &h, &angle);
  if (angle > 90) angle = 180 - angle;
  angle = (angle * pi) / 180.0;
  if (h > w) swap(h, w);
  threshold = 2 * atan(h / w);
  if (angle <= threshold) {
    cs = cos(angle);
    sn = sin(angle);
    h *= -1;
    w *= -1;
    A = sn * h - (1 + cs) * w;
    B = w * sn - h * (1 + cs);
    C = (1 + cs) * (1 + cs) - sn * sn;
    x = A / C;
    y = B / C;
    printf("%.9lf\n", w * h - sn * cs * (x * x + y * y));
  } else {
    printf("%.9lf\n", h * h / sin(angle));
  }
  return 0;
}
