#include <bits/stdc++.h>
using namespace std;
const long double pi = 3.1415926535897932384626;
int main() {
  long double w, h, alpha;
  cin >> w >> h >> alpha;
  if (w > h) swap(w, h);
  if (alpha > 90) alpha = 180 - alpha;
  long double c = cos(alpha * pi / 180);
  long double s = sin(alpha * pi / 180);
  if (tan(alpha * pi / 360) * h > w)
    cout << setprecision(20) << w * w / s;
  else
    cout << setprecision(20)
         << w * h - (pow((w + h) / (c + s + 1), 2) +
                     pow((w - h) / (c - s + 1), 2)) /
                        2 * c * s;
  return 0;
}
