#include <bits/stdc++.h>
using namespace std;
const double pi = 3.1415926535898;
int main() {
  double w, h, a, ans, alpha;
  cin >> w >> h >> a;
  if (a > 90) a = 180 - a;
  alpha = a * pi / 180;
  if (fabs(a - 90) < 1e-5)
    ans = h < w ? h * h : w * w;
  else if (alpha > atan(2 * h / w) && w > h / sin(alpha) + h / tan(alpha))
    ans = h * h / sin(alpha);
  else if (alpha > atan(2 * w / h) && h > w / sin(alpha) + w / tan(alpha))
    ans = w * w / sin(alpha);
  else {
    ans = (sin(alpha / 2) * h * h - 2 * cos(alpha / 2) * h * w +
           sin(alpha / 2) * w * w) /
          (2 * cos(alpha / 2) -
           4 * cos(alpha / 2) * cos(alpha / 2) * cos(alpha / 2));
  }
  cout << fixed << setprecision(9) << ans << endl;
  return 0;
}
