#include <bits/stdc++.h>
using namespace std;
const double pi = 4.0 * atan(1.0);
double w, h, a;
int main() {
  while (~scanf("%lf%lf%lf", &w, &h, &a)) {
    double m = min(w, h);
    if (abs(a - 0.0) < 1e-10 || abs(a - 180.0) < 1e-10) {
      printf("%lf\n", w * h);
      continue;
    }
    if (abs(a - 90.0) < 1e-10) {
      printf("%lf\n", m * m);
      continue;
    }
    if (a > 90.0) {
      a = 180.0 - a;
    }
    a = a * pi / 180.0;
    double x, y;
    double area;
    x = (h * tan(a) + h * sin(a) - w * sin(a) * tan(a)) /
        ((1.0 / cos(a)) + cos(a) - sin(a) * tan(a) + 2.0);
    y = h - x / sin(a) - x / tan(a);
    if (x < 0 || y < 0)
      area = m / sin(a) * m;
    else
      area = w * h - x * x / tan(a) - y * y / tan(a);
    printf("%lf\n", area);
  }
  return 0;
}
