#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  double co, si;
  double w, h, alpha;
  double ans;
  double a, b, c, d, e, f;
  cout.precision(12);
  cin >> w >> h >> alpha;
  if (alpha == 90) {
    cout << min(w, h) * min(w, h);
    return 0;
  } else if (alpha > 90)
    alpha = 180 - alpha;
  if (alpha == 0) {
    cout << w * h;
    return 0;
  }
  if (h > w) {
    int temp = h;
    h = w;
    w = temp;
  }
  double r = (double)M_PI * (double)alpha / (double)180;
  co = cos(r);
  si = sin(r);
  double lim = (double)2 * atan(h / w);
  if (r >= lim)
    ans = h * h * (1 / si);
  else {
    d = ((si * w) - (h * (1 + co))) / ((si * si) - ((1 + co) * (1 + co)));
    a = (h - (d * (1 + co))) / si;
    b = a * co;
    c = a * si;
    e = d * co;
    f = d * si;
    ans = w * h - b * c - f * e;
  }
  cout << fixed << ans;
  return 0;
}
