#include <bits/stdc++.h>
using namespace std;
double x1, x2, y, y2, w, h, a;
int main() {
  while (cin >> h >> w >> a) {
    if (h < w) swap(h, w);
    double x;
    if (a > 90) a = 180 - a;
    a = a * 3.1415926536 / 180;
    x1 = (h - w * tan(a) / (1.0 + 1.0 / cos(a))) /
         (1.0 + 1.0 / cos(a) - tan(a) * tan(a) / (1.0 + 1.0 / cos(a)));
    y = x1 * tan(a);
    x2 = (w - x1 * tan(a)) / (1.0 + 1.0 / cos(a));
    y2 = x2 * tan(a);
    double ans;
    x = (h * h - w * w) / (2 * h);
    x = atan(w / x);
    if (a > x)
      ans = w * h - (h - w / sin(a)) * w;
    else
      ans = w * h - x1 * y - x2 * y2;
    printf("%.9lf\n", ans);
  }
}
