#include <bits/stdc++.h>
using namespace std;
const long double Pi = 3.1415926535897932384626433832795028841971;
int main() {
  long double w, h, a;
  long double ans;
  cin >> w >> h >> a;
  if (w < h) swap(w, h);
  if (a > 90) a = 180 - a;
  if (a == 90) {
    ans = min(w, h) * min(w, h);
    cout.precision(9);
    cout << fixed << ans << endl;
    return 0;
  }
  double hu = a * Pi / 180;
  if (tan(hu) * (w * w - h * h) < 2 * w * h) {
    long double m = 1.0 + cos(hu);
    long double n = sin(hu);
    long double x, y;
    x = (m * w - n * h) / (m * m - n * n);
    y = (m * h - n * w) / (m * m - n * n);
    ans = w * h - x * x / 2 * sin(2 * hu) - y * y / 2 * sin(2 * hu);
  } else {
    ans = h * h / sin(hu);
  }
  cout.precision(9);
  cout << fixed << ans << endl;
  return 0;
}
