#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
int main() {
  double w, h, a;
  double ans;
  cin >> w >> h >> a;
  cout << setiosflags(ios::fixed) << setprecision(8);
  if (a > 90) a = 180 - a;
  a *= PI / 180;
  if (fabs(a / PI * 180 - 90) < 1e-5) {
    if (w > h)
      ans = h * h;
    else
      ans = w * w;
    cout << ans;
  } else if (a >= atan(2 * h / w) && w > h / sin(a) + h / tan(a)) {
    ans = h * h / sin(a);
    cout << ans;
  } else if (a >= atan(2 * w / h) && h > w / sin(a) + w / tan(a)) {
    ans = w * w / sin(a);
    cout << ans;
  } else {
    ans = w * h;
    ans = (sin(a / 2) * h * h - 2 * cos(a / 2) * h * w + sin(a / 2) * w * w) /
          (2 * cos(a / 2) - 4 * cos(a / 2) * cos(a / 2) * cos(a / 2));
    cout << ans;
  }
}
