#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
int main() {
  double w, h, t;
  cin >> w >> h >> t;
  if (w < h) swap(w, h);
  if (t >= 90) t = 180 - t;
  t = t * pi / 180;
  double x1, y1, x2, y2;
  y2 = (h - tan(t) * w / (1 + 1.0 / cos(t))) /
       (1 + 1 / cos(t) - tan(t) * tan(t) / (1 + 1 / cos(t)));
  x2 = tan(t) * y2;
  y1 = (w - y2 * tan(t)) / (1 + 1 / cos(t));
  x1 = y1 * tan(t);
  if (tan(t / 2) < h / w) {
    double ans = w * h - x1 * y1 - x2 * y2;
    printf("%.16f\n", ans);
  } else {
    double x = h / sin(t);
    printf("%.10f\n", w * h - (w - x) * h);
  }
}
