#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1);
double h, w, a, ans;
int main() {
  cin >> h >> w >> a;
  if (a > 90) a = 180 - a;
  if (a < 1e-9)
    ans = h * w;
  else {
    a = a * pi / 180;
    if (h > w) swap(h, w);
    if (a < 2 * atan2(h, w)) {
      double h1, h2;
      h1 = (h * cos(a) + w * sin(a) - h) / (double)2.0;
      h2 = (h * sin(a) + w * cos(a) - w) / (double)2.0;
      ans = w * h - ((h1 * h1 + h2 * h2) * (tan(a) + (double)1.0 / tan(a)));
    } else
      ans = w * h - (w - h / sin(a)) * h;
  }
  cout << setiosflags(ios::fixed) << setprecision(9) << ans << endl;
  return 0;
}
