#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  long double w, h;
  cin >> w >> h >> a;
  if (a > 90) a = 180 - a;
  if (h > w) swap(h, w);
  cout.precision(12);
  cout << fixed;
  if (a == 0) {
    cout << w * h << '\n';
    return 0;
  }
  if (a == 90) {
    cout << h * h << '\n';
    return 0;
  }
  long double beta = 2 * atan(h / w);
  long double alpha = (acos(-1.0) / 180.0) * a;
  long double sn = sin(alpha);
  long double cs = cos(alpha);
  if (alpha > beta) {
    cout << h * h / sn << '\n';
    return 0;
  }
  long double w0 = (w + w * cs - h * sn) / ((1 + cs) * (1 + cs) - sn * sn);
  long double h0 = (h - w0 * sn) / (1 + cs);
  long double w1 = h0 * sn;
  long double w2 = w0 * cs;
  long double h1 = h0 * cs;
  long double h2 = w0 * sn;
  cout << h * w - h1 * w1 - h2 * w2 << '\n';
}
