#include <bits/stdc++.h>
using namespace std;
int main() {
  double w, h, a;
  while (cin >> w >> h >> a) {
    if (w < h) swap(w, h);
    if (a == 0 || a == 180) {
      printf("%.10lf\n", w * h);
      continue;
    }
    if (a == 90) {
      printf("%.10lf\n", h * h);
      continue;
    }
    if (a > 90) a = 180 - a;
    a = a / 180 * acos(-1);
    double y = (w * sin(a) - (1 + cos(a)) * h) /
               (sin(a) * sin(a) - (1 + cos(a)) * (1 + cos(a)));
    double x = (w - y * sin(a)) / (1 + cos(a));
    if (y < 0) {
      printf("%.10lf\n", h * h / sin(a));
      continue;
    }
    double t1 = x * sin(a) * cos(a) * x;
    double t2 = y * sin(a) * cos(a) * y;
    double ans = w * h - t1 - t2;
    printf("%.10lf\n", ans);
  }
}
