#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  std::cerr << name << " : " << arg1 << '\n';
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  std::cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
const double pi = acos(-1);
double w, h, a, ans;
signed main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> w >> h >> a;
  if (a > 90) a = 180 - a;
  a *= (pi / 180);
  if (fabs(a / pi * 180 - 90) < 1e-8) {
    if (w > h)
      ans = h * h;
    else
      ans = w * w;
    printf("%.9lf\n", ans);
  } else if (a >= atan(2 * h / w) && w > h / sin(a) + h / tan(a)) {
    ans = (h * h / sin(a));
    printf("%.9lf\n", ans);
  } else if (a >= atan(2 * w / h) && h > w / sin(a) + w / tan(a)) {
    ans = (w * w / sin(a));
    printf("%.9lf\n", ans);
  } else {
    ans = w * h;
    ans = (h * h * sin(a / 2) + w * w * sin(a / 2) - 2 * h * w * cos(a / 2)) /
          (2 * cos(a / 2) - 4 * cos(a / 2) * cos(a / 2) * cos(a / 2));
    printf("%.9lf\n", ans);
  }
  return 0;
  return 0;
}
