#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.);
int main() {
  double w, h, a;
  cin >> w >> h >> a;
  a = a / 180 * PI;
  double m = w / h;
  double cala = asin(2 * m / (m * m + 1));
  if (a == PI / 2) {
    double small = h < w ? h : w;
    cout << small * small << endl;
    return 0;
  } else if (a > PI / 2) {
    a = PI - a;
  }
  if (a < cala) {
    double x = (w - h * sin(a) / (1 + cos(a))) /
               (1 + cos(a) - sin(a) * sin(a) / (1 + cos(a)));
    double y = (h - x * sin(a)) / (1 + cos(a));
    printf("%.9lf\n", w * h - (x * x + y * y) * sin(a) * cos(a));
  } else {
    double small = h < w ? h : w;
    printf("%.9lf\n", small * small / sin(a));
  }
  return 0;
}
